fix: Reference workflow from extra job

This commit is contained in:
2025-08-03 01:53:15 +02:00
parent 99548d86b1
commit 1db167616a
+4 -2
View File
@@ -31,11 +31,15 @@ jobs:
id: detect id: detect
run: | run: |
echo "changed_envs=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^docker/' | cut -d/ -f2 | sort -u | tr '\n' ' ')" >> "$GITHUB_OUTPUT" echo "changed_envs=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^docker/' | cut -d/ -f2 | sort -u | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
update-nginx:
name: Update Nginx image
uses: 2martens/cloud-configuration/.github/workflows/create-nginx.yaml@main
deploy: deploy:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- fact-finding - fact-finding
- update-nginx
strategy: strategy:
matrix: matrix:
env: [ test ] env: [ test ]
@@ -52,8 +56,6 @@ jobs:
echo "should_deploy=false" >> $GITHUB_OUTPUT echo "should_deploy=false" >> $GITHUB_OUTPUT
fi fi
shell: bash shell: bash
- name: Create nginx image
uses: 2martens/cloud-configuration/.github/workflows/create-nginx.yaml@main
- name: Insert secrets - name: Insert secrets
if: steps.check.outputs.should_deploy == 'true' if: steps.check.outputs.should_deploy == 'true'
env: env: