Skip to content

Commit

Permalink
chore(ci,github): ${{ github.event_name != 'pull_request' }}
Browse files Browse the repository at this point in the history
Signed-off-by: Bukowa <gitbukowa@gmail.com>
  • Loading branch information
bukowa committed Jun 10, 2024
1 parent 754b7c5 commit 349b5e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tag-docker_test_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
jobs:

Docker:
if: github.event_name != 'pull_request'
name: Build and Push Docker Images
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -65,19 +64,22 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ROBOT_TOKEN }}

- name: Login to GHCR.io Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Quay.io Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
registry: quay.io
Expand Down Expand Up @@ -118,10 +120,9 @@ jobs:
id: build-all
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: |
${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=gha
type=registry,ref=quay.io/k8start/http-headers
Expand Down

0 comments on commit 349b5e1

Please sign in to comment.