Skip to content

Commit 5a2ac3e

Browse files
Copilotcardil
andauthored
Use fully qualified image name; push to ttl.sh outside master
Co-authored-by: cardil <540893+cardil@users.noreply.github.com>
1 parent 7930bf6 commit 5a2ac3e

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

‎.github/workflows/multiarch-build.yaml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ jobs:
2525
id: build-image
2626
uses: redhat-actions/buildah-build@3f7ef4f0e61d6d1def3bf4fdd77798afca03428b # main; v3.1.0 has a broken inspect template (fixed upstream in https://github.com/redhat-actions/buildah-build/pull/207), switch back to @v3 once released
2727
with:
28-
image: php
29-
tags: latest
28+
# Fully qualified names: push-to-registry@v3 looks the local manifest
29+
# up as "localhost/<image>:<tag>" (run 39996644389 failed with
30+
# "localhost/php:latest: image not known" for an unqualified "php").
31+
# "1h" is the ttl.sh retention tag used for non-master verification.
32+
tags: localhost/php:latest localhost/php:1h
3033
platforms: linux/amd64, linux/arm64
3134
containerfiles: Containerfile
3235

@@ -35,8 +38,19 @@ jobs:
3538
uses: redhat-actions/push-to-registry@v3
3639
if: github.ref == 'refs/heads/master'
3740
with:
38-
image: ${{ steps.build-image.outputs.image }}
39-
tags: ${{ steps.build-image.outputs.tags }}
41+
image: php
42+
tags: latest
4043
registry: quay.io/wavesoftware
4144
username: ${{ secrets.QUAY_USER }}
4245
password: ${{ secrets.QUAY_PASSWORD }}
46+
47+
# Outside master, push to the anonymous, ephemeral ttl.sh registry so the
48+
# push path is verified on every branch without touching quay.io.
49+
- name: Push To ttl.sh
50+
id: push-to-ttl
51+
uses: redhat-actions/push-to-registry@v3
52+
if: github.ref != 'refs/heads/master'
53+
with:
54+
image: php
55+
tags: 1h
56+
registry: ttl.sh/wavesoftware-container-php-${{ github.sha }}

0 commit comments

Comments
 (0)