Skip to content

Commit 22657d5

Browse files
committed
fix(ci): move variant condition in build steps
1 parent e9276c4 commit 22657d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
build-and-push:
5353
name: Build and Push
5454
needs: set-env
55-
if: matrix.variant != 'sandbox' || needs.set-env.outputs.environment_name == 'production'
5655
runs-on: ubuntu-latest
5756
environment: ${{ matrix.github_env || needs.set-env.outputs.environment_name }}
5857
strategy:
@@ -97,6 +96,7 @@ jobs:
9796
echo "VOLONTARIAT_URL=${{ vars.VOLONTARIAT_URL }}" >> $GITHUB_OUTPUT
9897
9998
- name: Build and push ${{ matrix.service }} image
99+
if: ${{ matrix.variant != 'sandbox' || needs.set-env.outputs.environment_name == 'production' }}
100100
uses: docker/build-push-action@v6
101101
with:
102102
context: ./${{ matrix.service }}

0 commit comments

Comments
 (0)