Skip to content

Commit

Permalink
/run-deploy-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Lliillyy committed Dec 11, 2023
1 parent 306866d commit 28f8b93
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
ls ${{ github.workspace }}
- name: Build App Deploy Container
run: |-
cd ${{ github.workspace }}/src/deployment/
docker build -t app-deployment -f Dockerfile .
cd ${{ github.workspace }}/src/app_deploy/
docker build -t app_deployment --platform=linux/amd64 -f Dockerfile .
- name: Run Deploy App
if: contains(github.event.head_commit.message, '/run-deploy-app')
run: |-
docker run --rm --name app-deployment \
docker run --rm --name app_deployment \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $HOME/.ssh:/home/app/.ssh \
-v ${{ github.workspace }}/src/frontend-react:/frontend-react \
-v ${{ github.workspace }}/src/frontend:/frontend-react \
-v ${{ github.workspace }}/src/api-service:/api-service \
--volume $GITHUB_WORKSPACE:/workspace \
--mount type=bind,source=$GOOGLE_APPLICATION_CREDENTIALS,target=/secrets/deployment.json \
--env GOOGLE_APPLICATION_CREDENTIALS=/secrets/deployment.json \
-e USE_GKE_GCLOUD_AUTH_PLUGIN=True \
-e GCP_PROJECT=ac215-project \
-e GCP_ZONE=us-central1-a \
app-deployment sh deploy-app.sh
-e GCP_PROJECT=ac215project-398401 \
-e GCP_ZONE=us-west3-b \
app_deployment sh deploy-app.sh
- run: echo "Job's status is ${{ job.status }}."

0 comments on commit 28f8b93

Please sign in to comment.