From a60ae94ad59996da4ebc3be5e816e6c2eed3c006 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 18 Jul 2024 12:27:07 +0000 Subject: [PATCH] Update .gitea/workflows/publish.yaml --- .gitea/workflows/publish.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 54ff352..aafa79b 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -31,14 +31,19 @@ jobs: exit 1 fi docker: + runs-on: ubuntu-latest - needs: rust permissions: contents: read packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. id-token: write steps: + - name: Checkout repository + uses: actions/checkout@v4 + # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache # https://github.com/docker/setup-buildx-action @@ -70,6 +75,8 @@ jobs: uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: context: . - push: ${{ github.event_name != 'pull_request' }} + push: ${{ gitea.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max