Skip to content

Commit

Permalink
Update build condition and environment variables in php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Feb 29, 2024
1 parent 594fc93 commit 3d5aa7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: '🔨 Build Moodle and PHP images'
needs: [checkEnv]
runs-on: ubuntu-latest
if: ${{ needs.checkEnv.SKIP_BUILDS != 'YES' }} && (github.ref_name == 'dev' || github.ref_name == 'test' || github.ref_name == 'prod')
if: ${{ env.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 Expand Up @@ -79,4 +79,4 @@ jobs:
# Build PHP Image and push to Artifactory
- name: 🛠️ Build PHP Image and push to Artifactory
run: docker buildx build --tag ${{ secrets.ARTIFACTORY_URL }}/${{ needs.checkEnv.PHP_DEPLOYMENT_NAME }}:${{ needs.checkEnv.OPENSHIFT_DEPLOY_PROJECT }}-${{ github.ref_name }} --output=type=image,push=true --push -f ${{ env.PHP_DOCKER_FILE_PATH }} .
run: docker buildx build --tag ${{ secrets.ARTIFACTORY_URL }}/${{ env.PHP_DEPLOYMENT_NAME }}:${{ env.OPENSHIFT_DEPLOY_PROJECT }}-${{ github.ref_name }} --output=type=image,push=true --push -f ${{ env.PHP_DOCKER_FILE_PATH }} .

0 comments on commit 3d5aa7e

Please sign in to comment.