v1.3.2 #21
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: Publish Docker Images | |
on: | |
release: | |
types: [ "released" ] | |
jobs: | |
build: | |
name: Test Images | |
uses: ./.github/workflows/DockerTest.yml | |
publish: | |
runs-on: ubuntu-latest | |
name: Publish Images | |
needs: [ build ] | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- slurm-version: 20.02.5.1 | |
tags: ghcr.io/${{ github.repository_owner }}/test-env:20.02.5.1 | |
- slurm-version: 20.11.9.1 | |
tags: ghcr.io/${{ github.repository_owner }}/test-env:20.11.9.1 | |
- slurm-version: 22.05.2.1 | |
tags: ghcr.io/${{ github.repository_owner }}/test-env:22.05.2.1 | |
- slurm-version: 23.02.5.1 | |
tags: ghcr.io/${{ github.repository_owner }}/test-env:23.02.5.1,ghcr.io/${{ github.repository_owner }}/test-env:latest | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Define Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and publish image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ matrix.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: SLURM_VERSION=${{ matrix.slurm-version }} |