Skip to content

Release Docker images #31

Release Docker images

Release Docker images #31

Workflow file for this run

name: "Release Docker images"
on:
workflow_run:
workflows:
- "CI Tests"
branches:
- master
types:
- completed
jobs:
slurm:
name: "Slurm Docker images"
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: "Get current date"
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Build slurmctld image"
uses: docker/build-push-action@v5
with:
build-args: |
COMMIT=${{ github.sha }}
CREATION_DATE=${{ env.NOW }}
context: slurm/slurmctld
push: true
tags: alphaunito/slurmctld:21.08.5
- name: "Build slurmd image"
uses: docker/build-push-action@v5
with:
build-args: |
COMMIT=${{ github.sha }}
CREATION_DATE=${{ env.NOW }}
context: slurm/slurmd
push: true
tags: alphaunito/slurmd:21.08.5