Bump github-pages from 230 to 231 in /docs #105
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Undeploy Branch | |
on: | |
workflow_dispatch: ~ | |
pull_request: | |
types: [closed] | |
jobs: | |
undeploy: | |
runs-on: ubuntu-latest | |
# disable for PRs from forks and Dependabot | |
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} | |
env: | |
TAG_NAME: ${{ github.head_ref }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup GCloud | |
uses: ./.github/actions/gcloud | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Set Docker image name | |
run: echo "IMAGE_NAME=eu.gcr.io/$GCP_PROJECT/turnilo" >> $GITHUB_ENV | |
- name: Undeploy app | |
run: | | |
gcloud run services delete turnilo-${TAG_NAME//[^a-z0-9]/-} \ | |
--region europe-west1 \ | |
--quiet | |
- name: Delete Docker image | |
run: | | |
gcloud container images delete $IMAGE_NAME:${TAG_NAME//[^a-z0-9]/-} --quiet |