chore(main): release benefit-backend 1.1.1 #998
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: (BF) Stop Review | |
on: | |
pull_request: | |
types: [closed] | |
paths: | |
- 'backend/benefit/**' | |
- 'frontend/benefit/**' | |
- 'frontend/shared/**' | |
- 'frontend/*' | |
- '.github/workflows/bf-stop_review.yml' | |
workflow_dispatch: | |
inputs: | |
head_ref: | |
description: "Branch where review environment was created from (as in GitHub). Has to be given as the branch is probably removed and no longer available in the branch list. Can be empty if environment deployed manually" | |
pr_number: | |
description: "Own or pull request number of the environment creator" | |
env: | |
KUBECONFIG_RAW: ${{ secrets.KUBECONFIG_RAW }} | |
jobs: | |
stop_review: | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
name: Stop Review | |
steps: | |
- uses: andersinno/kolga-setup-action@v2 | |
with: | |
head_ref: ${{ github.event.inputs.head_ref }} | |
pr_number: ${{ github.event.inputs.pr_number }} | |
- name: Remove Review-Services | |
uses: City-of-Helsinki/review-services-action@main | |
with: | |
database: ${{ github.event.repository.name }}-bf-bknd-${{ github.event.pull_request.number }} | |
namespace: ${{ env.K8S_NAMESPACE }} | |
action: remove | |
db_user: ${{ secrets.K8S_SECRET_DATABASE_ADMIN_USERNAME_REVIEW }} | |
db_password: ${{ secrets.K8S_SECRET_DATABASE_ADMIN_PASSWORD_REVIEW }} | |
db_host: ${{ secrets.K8S_SECRET_DATABASE_HOST_REVIEW }} | |
db_port: ${{ secrets.K8S_SECRET_DATABASE_PORT_REVIEW }} | |
kubeconfig: ${{ secrets.KUBECONFIG_RAW }} | |
- name: Stop Review | |
uses: andersinno/kolga-review-cleanup-action@v2 | |
with: | |
namespace: ${{ env.K8S_NAMESPACE }} |