ci: remove push redundant calls
All checks were successful
/ pre-run (push) Successful in 25s
/ post-run (push) Successful in 26s
/ build (push) Successful in 1m24s

This commit is contained in:
Marc 2024-11-07 19:54:05 -05:00
parent e96e611d43
commit d3cb29cfbb
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -33,12 +33,13 @@ jobs:
- 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 }}
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 }}
for image in $(podman image ls --format {{.Repository }} | grep localhost/sesame)
do
for tag in latest "${{ steps.image-metadata.outputs.image-tag }}" "${{ github.ref_name }}"
do
podman push "$image:latest" "${{ vars.REGISTRY_ENDPOINT }}/$image:$tag"
done
done
post-run:
runs-on: imagefactory-latest
needs: [build]