Skip to content

Commit b36a330

Browse files
committed
chore(CI): run docker only when released
1 parent 0145fe4 commit b36a330

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/backend-build.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ jobs:
5151
needs:
5252
- release
5353

54-
if: ${{ needs.release.outputs.new_release_published }}
54+
if: ${{ needs.release.outputs.new_release_published == 'true' }}
5555

5656
steps:
5757
- uses: actions/checkout@v2
5858
- name: Docker meta
59-
if: ${{ needs.release.outputs.new_release_published }}
6059
id: docker_meta
6160
uses: docker/metadata-action@v3
6261
with:
@@ -83,7 +82,6 @@ jobs:
8382
password: ${{ secrets.GITHUB_TOKEN }}
8483

8584
- name: Build and push
86-
if: ${{ needs.release.outputs.new_release_published }}
8785
uses: docker/build-push-action@v2
8886
with:
8987
context: ./server

0 commit comments

Comments
 (0)