From d927b68005a761d00db1f17f64a3856a25618271 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:41:28 -0500 Subject: [PATCH] refactor: condense image pushing into single step --- .forgejo/workflows/build-images.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index e4ba030..4690fd6 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -30,15 +30,12 @@ jobs: run: | spud build -d ./service.yml podman image ls - - name: Push tagged Caddy image to registry + - name: Push tagged images to registry if: ${{ github.event_name == 'push' }} run: | podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:latest podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:${{ steps.image-metadata.outputs.image-tag }} podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} - - name: Push tagged Promtail image to registry - if: ${{ github.event_name == 'push' }} - run: | podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:latest podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:${{ steps.image-metadata.outputs.image-tag }} podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }}