ci: fix context - var -> vars
All checks were successful
/ pre-run (push) Successful in 24s
/ build (push) Successful in 1m47s
/ post-run (push) Successful in 27s

This commit is contained in:
Marc 2024-11-07 13:37:59 -05:00
parent 5ae73171b4
commit 3e53b9bda7
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -21,7 +21,7 @@ jobs:
- name: Setup Spud - name: Setup Spud
uses: https://forge.karnov.club/spadinastan/setup-spud-action@feat/install-spud-in-env uses: https://forge.karnov.club/spadinastan/setup-spud-action@feat/install-spud-in-env
- name: Login to Registry - name: Login to Registry
run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} ${{ var.REGISTRY_ENDPOINT }} run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} ${{ vars.REGISTRY_ENDPOINT }}
- name: Set image metadata - name: Set image metadata
id: image-metadata id: image-metadata
run: | run: |
@ -33,15 +33,15 @@ jobs:
- name: Push tagged Caddy image to registry - name: Push tagged Caddy image to registry
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
run: | run: |
podman push localhost/sesame-caddy:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:latest podman push localhost/sesame-caddy:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/caddy:latest
podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.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 - name: Push tagged Promtail image to registry
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
run: | run: |
podman push localhost/sesame-promtail:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/promtail:latest podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:latest
podman push localhost/sesame-promtail:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }} podman push localhost/sesame-promtail:latest ${{ vars.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }}
post-run: post-run:
runs-on: imagefactory-latest runs-on: imagefactory-latest
needs: [build] needs: [build]