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 3b28f9e commit 9ba07a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,29 @@ jobs:
echo Deploy to Namespace: ${{ env.DEPLOY_NAMESPACE }}
echo URL: https://${{ env.APP_HOST_URL }}
echo "CLEAN_BUILDS: ${{ env.CLEAN_BUILDS }}"
echo "SKIP_BUILDS: $SKIP_BUILDS OR ${{ env.SKIP_BUILDS }}"
if [[ "${{ env.CLEAN_BUILDS }}" != "false" ]]; then
echo "CLEAN_BUILDS is not false, setting CLEAN_BUILDS_TEXT to TRUE"
echo CLEAN_BUILDS_TEXT="TRUE" >> $GITHUB_OUTPUT
else
echo "CLEAN_BUILDS is false, setting CLEAN_BUILDS_TEXT to FALSE"
echo CLEAN_BUILDS_TEXT="FALSE" >> $GITHUB_OUTPUT
fi
echo "SKIP_BUILDS: $SKIP_BUILDS OR ${{ env.SKIP_BUILDS }}"
if [[ $SKIP_BUILDS == "YES" ]]; then
echo "SKIP_BUILDS is YES, setting SKIP_BUILDS_TEXT to YES"
echo SKIP_BUILDS="YES" >> $GITHUB_OUTPUT
else
echo "SKIP_BUILDS is NOT YES, setting SKIP_BUILDS to NO"
echo SKIP_BUILDS="NO" >> $GITHUB_OUTPUT
fi
# Build PHP Image

build-images:
name: 🔨 Build Application Images (${{ github.ref_name }})
needs: [checkEnv]
runs-on: ubuntu-latest
if: ${{ env.SKIP_BUILDS != 'YES' }} && (github.ref_name == 'dev' || github.ref_name == 'test' || github.ref_name == 'prod')
if: ${{ needs.checkEnv.SKIP_BUILDS != 'YES' }} && (github.ref_name == 'dev' || github.ref_name == 'test' || github.ref_name == 'prod')
steps:
# Checkout the PR branch
- name: 📤 Checkout Target Branch
Expand Down

0 comments on commit 9ba07a8

Please sign in to comment.