-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.67 KB
/
build-slurm-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 }}