From f2091e736962b014bb1c02b74f8ca66917a9c5f9 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sat, 4 May 2024 12:16:40 +0200 Subject: [PATCH] fix for gitea (hopefully) --- .github/workflows/y.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/y.yml b/.github/workflows/y.yml index f37077e..ed4ffb5 100644 --- a/.github/workflows/y.yml +++ b/.github/workflows/y.yml @@ -32,6 +32,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + if: env.ACT!='true' steps: - uses: actions/checkout@v4 @@ -68,13 +69,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - # Install the cosign tool except on PR - # https://github.com/sigstore/cosign-installer - - name: Install cosign - if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@v3.5.0 # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache @@ -82,6 +76,14 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + # Install the cosign tool except on PR + # https://github.com/sigstore/cosign-installer + - name: Install cosign + if: github.event_name != 'pull_request' && env.ACT!='true' + uses: sigstore/cosign-installer@v3.5.0 + # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -120,7 +122,7 @@ jobs: # transparency data even for private images, pass --force to cosign below. # https://github.com/sigstore/cosign - name: Sign the published Docker image - if: ${{ github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' }} && env.ACT!='true' env: # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable TAGS: ${{ steps.meta.outputs.tags }}