Skip to content

Commit

Permalink
add separate check-pr step for build
Browse files Browse the repository at this point in the history
  • Loading branch information
traktuner committed Dec 12, 2023
1 parent 6a0e9bc commit 216f552
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
packages: write
id-token: write
steps:
- name: Check if pull request
id: check-pr
run: echo "IS_PULL_REQUEST=$(test ${{ github.event_name }} == 'pull_request' && echo true || echo false)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v2

Expand Down Expand Up @@ -64,7 +68,7 @@ jobs:
with:
context: .
file: ./Dockerfile.ubuntu20
push: ${{ github.event_name != 'pull_request' }}
push: ${{ env.IS_PULL_REQUEST != 'true' }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -76,6 +80,10 @@ jobs:
packages: write
id-token: write
steps:
- name: Check if pull request
id: check-pr
run: echo "IS_PULL_REQUEST=$(test ${{ github.event_name }} == 'pull_request' && echo true || echo false)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v2

Expand Down Expand Up @@ -112,7 +120,7 @@ jobs:
with:
context: .
file: ./Dockerfile.ubuntu22
push: ${{ github.event_name != 'pull_request' }}
push: ${{ env.IS_PULL_REQUEST != 'true' }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
tags: ${{ steps.meta.outputs.tags }}:ubuntu22
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -124,6 +132,10 @@ jobs:
packages: write
id-token: write
steps:
- name: Check if pull request
id: check-pr
run: echo "IS_PULL_REQUEST=$(test ${{ github.event_name }} == 'pull_request' && echo true || echo false)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v2

Expand Down Expand Up @@ -160,7 +172,7 @@ jobs:
with:
context: .
file: ./Dockerfile.ubuntu18
push: ${{ github.event_name != 'pull_request' }}
push: ${{ env.IS_PULL_REQUEST != 'true' }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ubuntu18
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 216f552

Please sign in to comment.