Skip to content

fix docker build args #6

fix docker build args

fix docker build args #6

name: Add Slurm Packages to Release
on:
push:
branches:
- main
tags:
- "*"
jobs:
Create-Release-and-Upload-Dockerimage:
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
- name: "Download Slurm ${{ github.ref_name }}"
run: |
curl https://download.schedmd.com/slurm/slurm-${{ github.ref_name }}.tar.bz2 -o slurm.tar.bz2
- name: "Unpack Slurm Sources"
run: |
tar -xjvf ./slurm.tar.bz2
- name: "Build/Install Dependencies"
working-directory: ./slurm-${{ github.ref_name }}
run: |
yes | mk-build-deps -i debian/control
- name: "Build Packages"
working-directory: ./slurm-${{ github.ref_name }}
run: |
debuild -b -uc -us
- name: "Create Release Artifact"
uses: softprops/action-gh-releases@v2
with:
prerelease: false
draft: false
files: |
slurm-smd*_${{ github.ref_name }}-1_amd64.deb
- name: "Login to Docker Hub"
uses: docker/login-actions@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: "Build and Push"
uses: docker/build-push-action@v6
with:
push: true
tags: scalableminds/slurmctl:${{ github.ref_name }}
build-args: |
SLURM_VERSION=${{ github.ref_name }}