Skip to content

v0.30.0

v0.30.0 #32

Workflow file for this run

name: 03.Deploy Prod Environment
on:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
environment:
name: prod
url: https://registry.developer.gov.bc.ca
steps:
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: main
- name: Authenticate and set context
uses: redhat-actions/oc-login@dfbd9912672664f9df2023c1c16e07bcf306043c
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ vars.OPENSHIFT_NAMESPACE }}
insecure_skip_tls_verify: true
- name: Deploy apps with Helm chart
run: |
vtag=${{ github.event.release.tag_name }}
make upgrade \
NAMESPACE=${{ vars.OPENSHIFT_NAMESPACE }} \
IMAGE_TAG=${vtag//v}
working-directory: ./helm/main
- name: Notify RocketChat
if: success()
env:
ROCKETCHAT_WEBHOOK_URL: ${{ secrets.ROCKETCHAT_WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" -d '{
"text": ":white_check_mark: Deployment to Prod was successful! Read the changes here [${{ github.event.release.tag_name }}](https://github.com/bcgov/platform-services-registry/blob/main/CHANGELOG.md#${{ github.event.release.tag_name }})"
}' $ROCKETCHAT_WEBHOOK_URL