refactor: condense image pushing into single step

This commit is contained in:
Marc 2024-11-07 13:41:28 -05:00
parent 3e53b9bda7
commit d927b68005
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -30,15 +30,12 @@ jobs:
run: | run: |
spud build -d ./service.yml spud build -d ./service.yml
podman image ls podman image ls
- name: Push tagged Caddy image to registry - name: Push tagged images to registry
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
run: | run: |
podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:latest 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:${{ steps.image-metadata.outputs.image-tag }}
podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} 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: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:${{ steps.image-metadata.outputs.image-tag }}
podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }} podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }}