Changing conditional logic for dry run along with runs-on.
This commit is contained in:
@@ -45,9 +45,9 @@ jobs:
|
|||||||
|
|
||||||
docker-compose-dry-run:
|
docker-compose-dry-run:
|
||||||
name: Dry Run Docker Compose
|
name: Dry Run Docker Compose
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
needs: quality-gate
|
needs: quality-gate
|
||||||
if: needs.steps.quality-gate.outputs.quality-gate-status == 'PASSED'
|
if: steps.quality-gate.outputs.quality-gate-status == 'PASSED'
|
||||||
steps:
|
steps:
|
||||||
- name: Checking out
|
- name: Checking out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -55,10 +55,20 @@ jobs:
|
|||||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Docker Compose Lint
|
- name: Validate Docker Compose Configuration
|
||||||
uses: sjafferali/docker-compose-lint-action@v0.1.2
|
run: |
|
||||||
with:
|
docker compose config
|
||||||
compose-file: './docker-compose.yml'
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Docker Compose configuration validation failed."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Docker Compose configuration is valid."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# - name: Docker Compose Lint
|
||||||
|
# uses: sjafferali/docker-compose-lint-action@v0.1.2
|
||||||
|
# with:
|
||||||
|
# compose-file: './docker-compose.yml'
|
||||||
|
|
||||||
# manual-approval:
|
# manual-approval:
|
||||||
# name: Manual Approval
|
# name: Manual Approval
|
||||||
|
|||||||
Reference in New Issue
Block a user