Skip to content

Bump plywood-druid-requester from 2.6.13 to 2.6.14 #93

Bump plywood-druid-requester from 2.6.13 to 2.6.14

Bump plywood-druid-requester from 2.6.13 to 2.6.14 #93

Workflow file for this run

name: Undeploy Branch
on:
workflow_dispatch: ~
pull_request:
types: [closed]
jobs:
undeploy:
runs-on: ubuntu-latest
# disable for PRs from forks
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
TAG_NAME: ${{ github.head_ref }}
steps:
- name: Checkout
uses: actions/checkout@v2
- 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