Merge pull request #188 from bcgov/dev #4
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: Public Metabase | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'helm/metabase/**' | |
- '.github/workflows/publish-metabase.yml' | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
steps: | |
- uses: hmarr/debug-action@v3 | |
- uses: actions/checkout@v4 | |
- name: Authenticate and set context | |
uses: redhat-actions/oc-login@v1 | |
with: | |
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | |
openshift_token: ${{ secrets.PROD_OPENSHIFT_TOKEN }} | |
namespace: ${{ secrets.PROD_OPENSHIFT_NAMESPACE }} | |
insecure_skip_tls_verify: true | |
- name: Deploy metabase with Helm chart | |
run: | | |
namespace=${{ secrets.PROD_OPENSHIFT_NAMESPACE }} | |
helm dep up | |
helm upgrade --install --atomic realm-registry . -n ${namespace} \ | |
-f values.yaml -f "values-${namespace}.yaml" | |
working-directory: ./helm/metabase |