Fix action names #15
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: Dev - Build & Push docker images | |
on: | |
push: | |
branches: [ "dev" ] | |
env: | |
CLUSTER: https://api.silver.devops.gov.bc.ca:6443 | |
AUTH_TOKEN: ${{ secrets.OPENSHIFT_TOKEN_DEV }} | |
TARGET_PROJECT: c57ee7 | |
TARGET_ENV: dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build application Docker images | |
run: docker compose build | |
working-directory: ./applications/Unity.GrantManager | |
- name: Connect to OpenShift API | |
run: | | |
oc login --token=$AUTH_TOKEN --server=$CLUSTER | |
oc project $TARGET_PROJECT-$TARGET_ENV | |
oc registry login | |
- name: Push application images to OpenShift container registry | |
run: | | |
docker tag unity-grantmanager-web image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/unity-grantmanager-web:github-latest | |
docker tag unity-grantmanager-dbmigrator image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/unity-grantmanager-dbmigrator:github-latest | |
docker push image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/unity-grantmanager-web:github-latest | |
docker push image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/unity-grantmanager-dbmigrator:github-latest | |