Added logic for generating .env in pipeline and for linting.
This commit is contained in:
@@ -55,15 +55,21 @@ 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: Generate ephemeral env
|
||||||
|
run: echo "${{ secrets.RINOA_DOCKER_ENV }}" > ./.env
|
||||||
|
|
||||||
- name: Validate Docker Compose Configuration
|
- name: Validate Docker Compose Configuration
|
||||||
|
id: docker-lint
|
||||||
run: |
|
run: |
|
||||||
docker compose config
|
docker compose config --no-interpolate --dry-run
|
||||||
|
EXIT_CODE=$?
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Docker Compose configuration validation failed."
|
echo "Docker Compose configuration validation failed."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Docker Compose configuration is valid."
|
echo "Docker Compose configuration is valid."
|
||||||
fi
|
fi
|
||||||
|
echo "::set-output name=exit_code::$EXIT_CODE"
|
||||||
|
|
||||||
# - name: Docker Compose Lint
|
# - name: Docker Compose Lint
|
||||||
# uses: sjafferali/docker-compose-lint-action@v0.1.2
|
# uses: sjafferali/docker-compose-lint-action@v0.1.2
|
||||||
@@ -88,6 +94,7 @@ jobs:
|
|||||||
# steps:
|
# steps:
|
||||||
# - name: Checkout Code
|
# - name: Checkout Code
|
||||||
# uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Merge Pull Request
|
# - name: Merge Pull Request
|
||||||
# uses: prasiman/gocurl@v1
|
# uses: prasiman/gocurl@v1
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Reference in New Issue
Block a user