Skip to content

Commit

Permalink
create separate docker job and download deb from release
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-oleynik committed Sep 19, 2024
1 parent d83a0b9 commit c47e639
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-slurm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
draft: false
files: |
slurm-smd*_${{ github.ref_name }}-1_amd64.deb
Build-and-Upload-Docker-Image:
runs-on: ubuntu-latest
steps:
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ARG SLURM_GROUP=slurm
RUN apt-get update && apt-get upgrade --yes \
libpmix-bin

RUN for name in "" "-client" "-slurmctld" "-slurmdbd"; do \
curl https://github.com/scalableminds/slurm-packages/releases/download/${SLURM_VERSION}/slurm-smd${name}_${SLURM_VERSION}-1_amd64.deb \
-o /build/slurm-smd${name}_${SLURM_VERSION}-1_amd64.deb \
done

RUN mkdir /build
COPY *.deb /build
RUN apt-get install --yes -f \
Expand Down

0 comments on commit c47e639

Please sign in to comment.