Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
WIP fix staging server deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
imyourmanzi committed May 9, 2023
1 parent 6102a81 commit aa9de99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_IMYOURMANZI_SPOTIFYPLAYLISTMGR }}
projectId: imyourmanzi-spotifyplaylistmgr
channelId: staging
- run: echo '${{ steps.deploy.outputs.details_url }}'
- run: echo '${{ steps.deploy.outputs.expire_time }}'
- run: echo '${{ steps.deploy.outputs.urls }}'
outputs:
url: ${{ steps.deploy.outputs.urls[0] }}
server:
Expand All @@ -49,4 +52,4 @@ jobs:
- run: docker build --platform=linux/amd64 . -t us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:pr-${{ github.event.pull_request.number }}-latest
- run: echo '${{ steps.gcp_auth.outputs.access_token }}' | docker login -u oauth2accesstoken --password-stdin https://us-central1-docker.pkg.dev
- run: docker push us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:pr-${{ github.event.pull_request.number }}-latest
- run: gcloud run deploy staging-server --region us-central1 --image us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:pr-${{ github.event.pull_request.number }}-latest --revision-suffix "pr-${{ github.event.pull_request.number }}-$(date +'%Y%m%d-%H%M%S')" --update-env-vars==SPOTIFY_REDIRECT_URI=${{ needs.ui.outputs.url }}/callback/
- run: gcloud run deploy staging-server --region us-central1 --image us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:pr-${{ github.event.pull_request.number }}-latest --revision-suffix "pr-${{ github.event.pull_request.number }}-$(date +'%Y%m%d-%H%M%S')" --update-env-vars=SPOTIFY_REDIRECT_URI=${{ needs.ui.outputs.url }}/callback/

0 comments on commit aa9de99

Please sign in to comment.