Skip to content

Commit

Permalink
Fix branch name for deployment testing
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Sep 18, 2024
1 parent 40d0654 commit 4ffc562
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/gradle-build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,32 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: '🐳 Validate Gradle Wrapper'
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b

# Without the check task (or similar) we wouldn't be running the UI tests
- name: '🐳 Gradle run tests'
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: check nativeTest

# If the tests pass, and we're on the develop branch, then deploy the regular image to Google
deploy:
runs-on: ubuntu-latest
needs: [build-and-test]
if: github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
if: github.ref == 'refs/heads/develop'
steps:
- name: '🚀 Deploy Image to Cloud Run'
uses: './.github/workflows/gradle-deploy-develop.yml'

# If the tests pass, and we're on the develop branch, then deploy the native image to Google
deploy-native:
runs-on: ubuntu-latest
needs: [build-and-test]
if: github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
if: github.ref == 'refs/heads/develop' || github.ref_name == 'feature-2532/graal'
steps:
- name: '🚀 Deploy Native Image to Cloud Run'
uses: './.github/workflows/gradle-deploy-native-develop.yml'

# When finished, do something so the pipeline goes green
finalize:
runs-on: ubuntu-latest
needs: [deploy, deploy-native]
Expand Down

0 comments on commit 4ffc562

Please sign in to comment.