Added logic for generating .env in pipeline and for linting.
This commit is contained in:
@@ -48,22 +48,28 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: quality-gate
|
||||
if: ${{ steps.quality-gate.outputs.quality-gate-status }} == 'PASSED'
|
||||
steps:
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Generate ephemeral env
|
||||
run: echo "${{ secrets.RINOA_DOCKER_ENV }}" > ./.env
|
||||
|
||||
- name: Validate Docker Compose Configuration
|
||||
id: docker-lint
|
||||
run: |
|
||||
docker compose config
|
||||
docker compose config --no-interpolate --dry-run
|
||||
EXIT_CODE=$?
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Docker Compose configuration validation failed."
|
||||
exit 1
|
||||
else
|
||||
echo "Docker Compose configuration is valid."
|
||||
fi
|
||||
echo "::set-output name=exit_code::$EXIT_CODE"
|
||||
|
||||
# - name: Docker Compose Lint
|
||||
# uses: sjafferali/docker-compose-lint-action@v0.1.2
|
||||
@@ -88,6 +94,7 @@ jobs:
|
||||
# steps:
|
||||
# - name: Checkout Code
|
||||
# uses: actions/checkout@v4
|
||||
|
||||
# - name: Merge Pull Request
|
||||
# uses: prasiman/gocurl@v1
|
||||
# with:
|
||||
|
||||
Reference in New Issue
Block a user