mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
remove undeploy step (#1388)
This commit is contained in:
36
.github/workflows/gcp-deploy-frontend.yaml
vendored
36
.github/workflows/gcp-deploy-frontend.yaml
vendored
@@ -106,42 +106,6 @@ jobs:
|
||||
echo "::set-output name=FRONTEND_TAG::\
|
||||
${{steps.second.outputs.DOCKER_PATH}}/frontend:${{github.ref_name}}"
|
||||
|
||||
undeploy-frontend:
|
||||
name: Undeploy Frontend
|
||||
runs-on: ubuntu-latest
|
||||
needs: [env]
|
||||
|
||||
steps:
|
||||
- name: Set Up gcloud CLI
|
||||
uses: google-github-actions/setup-gcloud@v0.6.0
|
||||
with:
|
||||
project_id: ${{needs.env.outputs.PROJECT_ID}}
|
||||
service_account_key: ${{secrets.GCP_SA_KEY}}
|
||||
export_default_credentials: true
|
||||
|
||||
- name: "Delete Service: ${{needs.env.outputs.FRONTEND_SERVICE}}"
|
||||
continue-on-error: true
|
||||
run: |
|
||||
gcloud -q run services delete ${{needs.env.outputs.FRONTEND_SERVICE}} \
|
||||
--region ${{needs.env.outputs.CLOUDRUN_REGION}}
|
||||
|
||||
delete-frontend:
|
||||
name: Delete Frontend Container Image
|
||||
runs-on: ubuntu-latest
|
||||
needs: [env]
|
||||
|
||||
steps:
|
||||
- name: Set Up gcloud CLI
|
||||
uses: google-github-actions/setup-gcloud@v0.6.0
|
||||
with:
|
||||
project_id: ${{needs.env.outputs.PROJECT_ID}}
|
||||
service_account_key: ${{secrets.GCP_SA_KEY}}
|
||||
export_default_credentials: true
|
||||
|
||||
- name: "Delete Container Image: ${{needs.env.outputs.FRONTEND_TAG}}"
|
||||
continue-on-error: true
|
||||
run: gcloud -q artifacts docker images delete ${{needs.env.outputs.FRONTEND_TAG}}
|
||||
|
||||
build-frontend:
|
||||
name: Build Frontend Container Image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user