Skip to content

Commit 61c0fb0

Browse files
committed
ci: remove duplicate image build on main
1 parent 1b765f1 commit 61c0fb0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: Continuous Integration
44
on:
55
merge_group:
66
pull_request:
7-
push:
8-
branches: [main]
97
workflow_dispatch:
108

119
concurrency:

.github/workflows/wc-build-push.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ jobs:
118118
DOCKER_METADATA_SET_OUTPUT_ENV: false
119119
with:
120120
images: ${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}
121-
# Generate Docker tags based on the following events/attributes
121+
# Generate Docker tags based on the following events/attributes.
122+
# To prevent unnecessary image builds we simulate the `type=edge` tag
123+
# with `type=raw,value=edge,enable=...` which only enables the tag
124+
# for a `merge_group` event, this removes the need to build on `push`.
122125
tags: |
123-
type=edge
124-
type=raw,value=queue,enable=${{ github.event_name == 'merge_group' }}
126+
type=raw,value=edge,enable=${{ github.event_name == 'merge_group' }}
125127
type=ref,event=pr
126128
type=semver,pattern={{raw}}
127129
type=semver,pattern={{version}}

0 commit comments

Comments
 (0)