Skip to content

Commit

Permalink
Merge pull request #39 from KjellBerlin/github-deployment-action-1
Browse files Browse the repository at this point in the history
Add JDK distribution
  • Loading branch information
KjellBerlin authored Aug 6, 2024
2 parents 27cc377 + 6058ff9 commit 091e602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
Expand All @@ -39,10 +40,9 @@ jobs:
gcloud run deploy ${{ secrets.CLOUD_RUN_SERVICE }} \
--image gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.ARTIFACT_REGISTRY_REPO }}/my-app:$GITHUB_SHA \
--platform managed \
--region europe-west1
--region europe-west1 \
--allow-unauthenticated \
--set-env-vars SPRING_PROFILES_ACTIVE=staging
- name: Clean up
run: docker rmi gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.ARTIFACT_REGISTRY_REPO }}/my-app:$GITHUB_SHA

0 comments on commit 091e602

Please sign in to comment.