Skip to content

Commit

Permalink
Adjust SKIP_BUILDS
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Oct 12, 2023
1 parent 7189f87 commit 32fb006
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ jobs:
run: |
echo "Building ${{ steps.dotenv.outputs.PHP_DEPLOYMENT_NAME }}:${{ env.BRANCH }}"
echo "Using ${{ steps.dotenv.outputs.PHP_IMAGE }}"
if [ ${{ env.SKIP_BUILDS == false }} == true ]; then
if ${{ env.SKIP_BUILDS != 'YES' }}; then
echo "STARTING BUILD..."
sh ./openshift/scripts/build-docker-image.sh
else
echo "SKIPPING BUILD (Environment variable SKIP_BUILDS=true)"
echo "SKIPPING BUILD (Environment variable SKIP_BUILDS=YES)"
fi
sh ./openshift/scripts/build-docker-image.sh
env:
DOCKER_FROM_IMAGE: ${{ steps.dotenv.outputs.PHP_IMAGE }}
DOCKER_FILE_PATH: ${{ env.PHP_DOCKER_FILE_PATH }}
Expand All @@ -144,12 +144,12 @@ jobs:
run: |
echo "Building ${{ steps.dotenv.outputs.CRON_DEPLOYMENT_NAME }}:${{ env.BRANCH }}"
echo "Using ${{ steps.dotenv.outputs.CRON_IMAGE }}"
if [ ${{ env.SKIP_BUILDS == false }} == true ]; then
if ${{ env.SKIP_BUILDS != 'YES' }}; then
echo "STARTING BUILD..."
sh ./openshift/scripts/build-docker-image.sh
else
echo "SKIPPING BUILD (Environment variable SKIP_BUILDS=true)"
echo "SKIPPING BUILD (Environment variable SKIP_BUILDS=YES)"
fi
sh ./openshift/scripts/build-docker-image.sh
env:
DOCKER_FROM_IMAGE: ${{ steps.dotenv.outputs.CRON_IMAGE }}
DOCKER_FILE_PATH: ${{ env.CRON_DOCKER_FILE_PATH }}
Expand Down

0 comments on commit 32fb006

Please sign in to comment.