Skip to content

Commit 6c4e489

Browse files
fix(ci): fix push bug.
Signed-off-by: Electronic-Waste <[email protected]>
1 parent 02d446e commit 6c4e489

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/build-and-push-images.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ jobs:
3232
- name: Set Push Flag
3333
id: set-push
3434
run: |
35-
if [[ "${{ github.event_name }}" == "push" && (${{ github.ref == 'refs/heads/main' }} || ${{ startsWith(github.ref, 'refs/tags/') }})]]; then
36-
echo "push=true" >> $GITHUB_OUTPUT
37-
else
38-
echo "push=false" >> $GITHUB_OUTPUT
39-
fi
35+
echo "push=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}" >> $GITHUB_OUTPUT
4036
4137
- name: Build And Publish Component ${{ matrix.component-name }}
4238
uses: ./.github/workflows/template-publish-image

.github/workflows/template-publish-image/action.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,8 @@ runs:
141141
platforms: ${{ inputs.platforms }}
142142
context: ${{ inputs.context }}
143143
file: ${{ inputs.dockerfile }}
144-
push: ${{ inputs.push == 'true' }}
144+
push: false
145145
tags: ${{ steps.meta.outputs.tags }}
146146
cache-from: type=gha,scope=${{ inputs.image }}-${{ github.workflow }}
147147
cache-to: type=gha,mode=max,scope=${{ inputs.image }}-${{ github.workflow }},ignore-error=true
148148
build-args: ${{ steps.build-args.outputs.args }}
149-
pull: true
150-
outputs: type=registry,compression=zstd,compression-level=3,force-compression=true

0 commit comments

Comments
 (0)