Skip to content

Commit ae37b82

Browse files
committed
fix: wip
1 parent cbe646e commit ae37b82

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ jobs:
112112
timeout-minutes: 30
113113
needs:
114114
- build
115+
env:
116+
publish: ${{contains(fromJSON('["push", "release"]'), github.event_name)}}
115117
steps:
116118
- uses: actions/checkout@v4
117119

@@ -157,18 +159,18 @@ jobs:
157159
- name: Create manifest list and push
158160
working-directory: ${{ runner.temp }}/digests
159161
env:
160-
DRY_RUN: ${{ case(contains(fromJSON('["push", "release"]'), github.event_name),"", "--dry-run") }} # run the `docker buildx` command with --dry-run if we're not publishing a release
162+
DRY_RUN: ${{case(env.publish,"","--dry-run")}} # run the `docker buildx` command with --dry-run if we're not publishing a release
161163
run: |
162164
docker buildx imagetools create ${{ env.DRY_RUN }} $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
163165
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
164166
165167
- name: Inspect image
166-
if: ${{ contains(fromJSON('["push", "release"]'), github.event_name) }} # only publish on changes to `main`, or cutting a numbered release
168+
if: ${{ env.publish }} # only publish on changes to `main`, or cutting a numbered release
167169
run: |
168170
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
169171
170172
- name: Notify Multitudes
171-
if: ${{ contains(fromJSON('["push", "release"]'), github.event_name) }} # only publish on changes to `main`, or cutting a numbered release
173+
if: ${{ env.publish }} # only publish on changes to `main`, or cutting a numbered release
172174
run: |
173175
curl --request POST \
174176
--fail-with-body \

0 commit comments

Comments
 (0)