Deploy Dev AMS #3
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: Deploy Dev AMS | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: | |
# - aldudin | |
env: | |
JFROG_REGISTRY: artifacts.developer.gov.bc.ca | |
IMAGE_NAME_FRONTEND: sf4a-strdss/strdss-frontend-dev | |
IMAGE_NAME_BACKEND: sf4a-strdss/strdss-backend-dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
environment: | |
name: dev | |
url: https://dev-strdata.apps.advsol-ams.3j6z.p1.openshiftapps.com | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Authenticate and set context | |
uses: redhat-actions/[email protected] | |
with: | |
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_AMS }} | |
openshift_token: ${{ secrets.OPENSHIFT_TOKEN_AMS }} | |
namespace: f4a30d-dev | |
insecure_skip_tls_verify: true | |
- name: Log in to JFrog Artifactory | |
uses: docker/login-action@v1 | |
with: | |
registry: artifacts.developer.gov.bc.ca | |
username: ${{ secrets.JFROG_USERNAME }} | |
password: ${{ secrets.JFROG_PASSWORD }} | |
- name: Deploy apps with Helm chart | |
run: | | |
docker login artifacts.developer.gov.bc.ca -u ${{ secrets.JFROG_USERNAME }} -p ${{ secrets.JFROG_PASSWORD }} | |
make upgrade \ | |
NAMESPACE=f4a30d-dev \ | |
NAME=strdss-dev \ | |
ENV_NAME=dev \ | |
IMAGE_TAG_FRONTEND=latest \ | |
IMAGE_TAG_BACKEND=latest \ | |
working-directory: ./helm/main |