From 32fb006d2db5b39051822abdfbdf87f8e5dc8b6a Mon Sep 17 00:00:00 2001 From: Warren Christian <70002196+warrenchristian1telus@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:17:02 -0700 Subject: [PATCH] Adjust SKIP_BUILDS --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08e711e..ffde9ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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 }}