From bf3631225baafcf86a0550a565241e7737e99459 Mon Sep 17 00:00:00 2001 From: Benjamin <8467845+import-benjamin@users.noreply.github.com> Date: Mon, 26 May 2025 22:43:40 +0200 Subject: [PATCH 1/2] fix(ci): remove duplicate value from redhat-actions input --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 745e2af..a6a300a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,7 @@ jobs: - name: Buildah Action uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 with: - image: ghcr.io/${{ github.repository }} + image: ${{ github.repository }} tags: ${{ github.event_type == 'push' && github.ref_name || github.sha }} containerfiles: | ./Containerfile @@ -36,7 +36,7 @@ jobs: if: github.event_name == 'push' uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 with: - image: ghcr.io/${{ github.repository }} + image: ${{ github.repository }} tags: ${{ github.ref_name }} containerfiles: | ./Containerfile @@ -50,9 +50,9 @@ jobs: uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8 id: push with: - image: ghcr.io/${{ github.repository }} + image: ${{ github.repository }} tags: ${{ github.ref_name }} - registry: ghcr.io/${{ github.repository }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }} extra-args: | From e17fe22c5d5199c975c57ffae82131ff96b354fb Mon Sep 17 00:00:00 2001 From: Benjamin <8467845+import-benjamin@users.noreply.github.com> Date: Mon, 26 May 2025 22:49:12 +0200 Subject: [PATCH 2/2] fix(ci): remove registry value from image testing --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a6a300a..670ed33 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,9 +27,9 @@ jobs: extra-args: | --target=build - name: Run go vet - run: podman run ghcr.io/${{ github.repository }}:${{ github.sha }} go vet -v ./... + run: podman run ${{ github.repository }}:${{ github.sha }} go vet -v ./... - name: Run go test - run: podman run ghcr.io/${{ github.repository }}:${{ github.sha }} go test -v ./... + run: podman run ${{ github.repository }}:${{ github.sha }} go test -v ./... - name: Buildah Action # Push events mean either a tag or main branch