mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Reference workflow from extra job
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user