Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
fix push action (#62)
Browse files Browse the repository at this point in the history
* fix push action

Signed-off-by: Francesco Ilario <filario@redhat.com>

* execute pr workflow changes

Signed-off-by: Francesco Ilario <filario@redhat.com>

* disable go cache

Signed-off-by: Francesco Ilario <filario@redhat.com>

---------

Signed-off-by: Francesco Ilario <filario@redhat.com>
  • Loading branch information
filariow authored Apr 5, 2024
1 parent f4f27ac commit bdc6790
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit bdc6790

Please sign in to comment.