Skip to content

Commit 3745883

Browse files
committed
Adjusted docker tag for latex container
1 parent c4e31e9 commit 3745883

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

.github/workflows/build-latex.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ jobs:
7474
${{ steps.tag_head.outputs.tag }}-amd64
7575
labels: ${{ steps.meta.outputs.labels }}
7676

77+
- name: Create and push a manifest with ver referencing version
78+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
79+
run: |
80+
docker buildx imagetools create \
81+
-t ${{ steps.tag_ver.outputs.tag }}-amd64 \
82+
${{ steps.tag_head.outputs.tag }}-amd64
83+
7784
7885
build_latex_arm64:
7986
name: Build and publish LaTex image (arm64)
@@ -136,6 +143,13 @@ jobs:
136143
${{ steps.tag_head.outputs.tag }}-arm64
137144
labels: ${{ steps.meta.outputs.labels }}
138145

146+
- name: Create and push a manifest with ver referencing version
147+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
148+
run: |
149+
docker buildx imagetools create \
150+
-t ${{ steps.tag_ver.outputs.tag }}-arm64 \
151+
${{ steps.tag_head.outputs.tag }}-arm64
152+
139153
140154
push_multi_arch_manifest:
141155
name: Push Docker multi-arch manifest to Container registry
@@ -187,11 +201,19 @@ jobs:
187201
id: tag_ver
188202
run: echo "tag=${{ steps.ghcr_repo.outputs.path }}:${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
189203

190-
- name: Create and push a manifest with ver referencing git sha
204+
- name: Create and push a manifest referencing git sha
191205
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
192206
run: |
193207
docker buildx imagetools create \
194208
-t ${{ steps.tag_sha.outputs.tag }} \
209+
${{ steps.tag_sha.outputs.tag }}-arm64 \
210+
${{ steps.tag_sha.outputs.tag }}-amd64
211+
212+
- name: Create and push a manifest referencing git head
213+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
214+
run: |
215+
docker buildx imagetools create \
216+
-t ${{ steps.tag_head.outputs.tag }} \
195217
${{ steps.tag_head.outputs.tag }}-arm64 \
196218
${{ steps.tag_head.outputs.tag }}-amd64
197219
@@ -200,6 +222,6 @@ jobs:
200222
run: |
201223
docker buildx imagetools create \
202224
-t ${{ steps.tag_ver.outputs.tag }} \
203-
${{ steps.tag_head.outputs.tag }}-arm64 \
204-
${{ steps.tag_head.outputs.tag }}-amd64
225+
${{ steps.tag_ver.outputs.tag }}-arm64 \
226+
${{ steps.tag_ver.outputs.tag }}-amd64
205227

0 commit comments

Comments
 (0)