Skip to content

Commit

Permalink
Merge pull request #22 from bcgov/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DarylTodosichuk authored Sep 14, 2023
2 parents aafa474 + c111d30 commit 0a349da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
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
docker tag webapp image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/webapp:github-latest
docker push image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/webapp:github-latest
10 changes: 4 additions & 6 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
env:
CLUSTER: https://api.silver.devops.gov.bc.ca:6443
AUTH_TOKEN: ${{ secrets.OPENSHIFT_TOKEN_TEST }}
TARGET_PROJECT: c57ee7
TARGET_PROJECT: ${{ vars.PROJECT_NAMESPACE }}
TARGET_ENV: test

jobs:
Expand All @@ -32,17 +32,15 @@ jobs:
- uses: actions/checkout@v3
- name: Build application Docker images
run: docker compose build
working-directory: ./applications/Unity.GrantManager
working-directory: ./applications
- 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
docker tag webapp image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/webapp:github-latest
docker push image-registry.apps.silver.devops.gov.bc.ca/$TARGET_PROJECT-$TARGET_ENV/webapp:github-latest
1 change: 1 addition & 0 deletions applications/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Learn about building .NET container images:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md

FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
WORKDIR /source

Expand Down
1 change: 1 addition & 0 deletions applications/Dockerfile.alpine-slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Learn about building .NET container images:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md

FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
WORKDIR /source

Expand Down

0 comments on commit 0a349da

Please sign in to comment.