From 249dc620eef1e24fa7b3f1028cea13ce57ef7e9c Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:14:46 -0500 Subject: [PATCH 1/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index 90e7f79..519b0c2 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -31,17 +31,17 @@ jobs: spud build -d ./service.yml podman image ls - name: Push tagged Caddy image to registry - if: ${{ github.event_name == 'push' }} + #if: ${{ github.event_name == 'push' }} run: | podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} + # podman push localhost/sesame-caddy:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ steps.image-metadata.outputs.image-tag }} + # podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }} + # podman push localhost/sesame-promtail:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/promtail:${{ steps.image-metadata.outputs.image-tag }} + # podman push localhost/sesame-promtail:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/promtail:${{ github.ref_name }} post-run: runs-on: imagefactory-latest needs: [build] -- 2.45.2 From d024dff14598245f7bb4ec8a7a8b1e29ca1682fd Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:18:04 -0500 Subject: [PATCH 2/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index 519b0c2..dc902f0 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -32,8 +32,7 @@ jobs: podman image ls - name: Push tagged Caddy image to registry #if: ${{ github.event_name == 'push' }} - run: | - podman push localhost/sesame-caddy:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:latest + run: podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} - name: Push tagged Promtail image to registry -- 2.45.2 From 8d7d237a794114665932d528d061017d47d73f1f Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:23:14 -0500 Subject: [PATCH 3/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index dc902f0..e58a162 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -30,11 +30,12 @@ jobs: run: | spud build -d ./service.yml podman image ls - - name: Push tagged Caddy image to registry #if: ${{ github.event_name == 'push' }} - run: podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} + - run: | + podman image ls + podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} - name: Push tagged Promtail image to registry if: ${{ github.event_name == 'push' }} run: | -- 2.45.2 From 58676112db06a1a887447506b18066a011ded053 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:26:15 -0500 Subject: [PATCH 4/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index e58a162..263b76d 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -31,9 +31,9 @@ jobs: spud build -d ./service.yml podman image ls #if: ${{ github.event_name == 'push' }} - - run: | - podman image ls - podman push localhost/sesame-caddy:latest ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:latest + - run: echo "Step" + # podman image ls + # podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} - name: Push tagged Promtail image to registry -- 2.45.2 From 35733f48fa71dfe41e53db4c0cfe1d06d54f75e9 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:28:35 -0500 Subject: [PATCH 5/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index 263b76d..bf06807 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -31,8 +31,8 @@ jobs: spud build -d ./service.yml podman image ls #if: ${{ github.event_name == 'push' }} - - run: echo "Step" - # podman image ls + - run: | + podman image ls # podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} -- 2.45.2 From dde534556d7e7e7140333b0f1c319b8d6d680d4f Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:29:46 -0500 Subject: [PATCH 6/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index bf06807..e0de930 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -31,8 +31,7 @@ jobs: spud build -d ./service.yml podman image ls #if: ${{ github.event_name == 'push' }} - - run: | - podman image ls + - run: podman image ls # podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} -- 2.45.2 From 0a5383f6d9e118c8b750be10e801ad527ed8cf6b Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 13:33:45 -0500 Subject: [PATCH 7/7] ci: disable restrictions around pushing --- .forgejo/workflows/build-images.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-images.yml b/.forgejo/workflows/build-images.yml index e0de930..2860198 100644 --- a/.forgejo/workflows/build-images.yml +++ b/.forgejo/workflows/build-images.yml @@ -31,10 +31,11 @@ jobs: spud build -d ./service.yml podman image ls #if: ${{ github.event_name == 'push' }} - - run: podman image ls - # podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} + - run: | + podman image ls + podman push localhost/sesame-caddy:latest ${{ var.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 ${{ var.REGISTRY_ENDPOINT }}/sesame/caddy:${{ github.ref_name }} - name: Push tagged Promtail image to registry if: ${{ github.event_name == 'push' }} run: | -- 2.45.2