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

Commit

Permalink
Update server deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
imyourmanzi committed May 1, 2023
1 parent 49162d0 commit 83007a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main-2-deploy-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,7 @@ jobs:
with:
project_id: imyourmanzi-spotifyplaylistmgr
# install_components: core,gcloud # see https://cloud.google.com/sdk/docs/components
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- id: package
run: echo "contents=$(cat package.json)" >> "$GITHUB_OUTPUTS"
- run: npx -y 'nx@{{ fromJSON(steps.package.outputs.contents)['devDependencies']['@nrwl/cli'] }}' build:docker server
- run: docker tag docker tag spm-server:latest us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:latest
- run: docker build --platform=linux/amd64 . -t us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server: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:latest
- run: gcloud run deploy server --image us-central1-docker.pkg.dev/imyourmanzi-spotifyplaylistmgr/server-images/server:latest --revision-suffix "$(date +'%Y%m%d-%H%M%S')" --region us-central1
13 changes: 0 additions & 13 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 83007a3

Please sign in to comment.