From bdc67901a14fa2f8a68916204ea98028d700731a Mon Sep 17 00:00:00 2001 From: Francesco Ilario Date: Fri, 5 Apr 2024 16:02:20 +0200 Subject: [PATCH] fix push action (#62) * fix push action Signed-off-by: Francesco Ilario * execute pr workflow changes Signed-off-by: Francesco Ilario * disable go cache Signed-off-by: Francesco Ilario --------- Signed-off-by: Francesco Ilario --- .github/workflows/push.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 503448f3..374d7fac 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -3,8 +3,11 @@ name: Build container images on: # yamllint disable-line rule:truthy push: branches: [main] - pull_request_target: - types: [opened, syncronize, reopened, ready_for_review] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +env: + GO_VERSION: 1.22 jobs: build: @@ -21,7 +24,7 @@ jobs: steps: - name: Checkout Git Repository uses: actions/checkout@v4 - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -33,6 +36,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + cache: false + - name: Determine image tag id: tag run: |