fix runner config #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add Slurm Packages to Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
Create-Release-and-Upload-Dockerimage: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:bookworm | |
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_PASS }} | |
- 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 }} |