Skip to content

fix trailing backslash #24

fix trailing backslash

fix trailing backslash #24

name: Add Slurm Packages to Release
on:
push:
tags:
- "*"
jobs:
Create-Release-and-Upload-Packages:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- uses: actions/checkout@v4
- name: "Install Build Tools"
run: |
apt-get update && apt-get install --yes curl build-essential fakeroot devscripts equivs
- 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-release@v2
with:
prerelease: false
draft: false
files: |
slurm-smd*_${{ github.ref_name }}-1_amd64.deb
Build-and-Upload-Docker-Image:
needs: ["Create-Release-and-Upload-Packages"]
runs-on: ubuntu-latest
steps:
- name: "Login to Docker Hub"
uses: docker/login-action@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 }}