Skip to content

Commit c43b882

Browse files
committed
gh: Tag stuff
1 parent eddad97 commit c43b882

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/build_docker.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ jobs:
1919
strategy:
2020
matrix:
2121
include:
22-
- architecture: linux/amd64
22+
- architecture: "amd64"
2323
base_image: "ubuntu:22.04"
2424
use_cuda: "OFF"
2525
tag_suffix: ""
26-
- architecture: linux/amd64
26+
- architecture: "amd64"
2727
base_image: "nvidia/cuda:12.4.1-devel-ubuntu22.04"
2828
use_cuda: "ON"
2929
tag_suffix: "-cuda12.4"
30-
- architecture: linux/amd64
30+
- architecture: "amd64"
3131
base_image: "nvidia/cuda:12.8.1-devel-ubuntu22.04"
3232
use_cuda: "ON"
3333
tag_suffix: "-cuda12.8"
34-
- architecture: linux/arm64
34+
- architecture: "arm64"
3535
base_image: "ubuntu:22.04"
3636
use_cuda: "OFF"
3737
tag_suffix: ""
38-
- architecture: linux/arm64
38+
- architecture: "arm64"
3939
base_image: "nvidia/cuda:12.4.1-devel-ubuntu22.04"
4040
use_cuda: "ON"
4141
tag_suffix: "-cuda12.4"
42-
- architecture: linux/arm64
42+
- architecture: "arm64"
4343
base_image: "nvidia/cuda:12.8.1-devel-ubuntu22.04"
4444
use_cuda: "ON"
4545
tag_suffix: "-cuda12.8"
@@ -67,6 +67,13 @@ jobs:
6767
uses: docker/metadata-action@v5
6868
with:
6969
images: ghcr.io/educelab/pgs-recon
70+
flavor: |
71+
suffix=-${{ matrix.architecture }}${{ matrix.tag_suffix }},onlatest=true
72+
tags: |
73+
type=ref,event=pr
74+
type=semver,pattern={{version}}
75+
type=semver,pattern={{major}}.{{minor}}
76+
type=edge
7077
7178
- name: Login to GitHub Container Registry
7279
if: github.event_name != 'pull_request'
@@ -83,7 +90,7 @@ jobs:
8390
BASE_IMAGE=${{ matrix.base_image }}
8491
USE_CUDA=${{ matrix.use_cuda }}
8592
push: ${{ github.event_name != 'pull_request' }}
86-
platforms: ${{ matrix.architecture }}
93+
platforms: linux/${{ matrix.architecture }}
8794

8895
- name: Generate artifact attestation
8996
uses: actions/attest-build-provenance@v3

0 commit comments

Comments
 (0)