Skip to content

Commit

Permalink
Merge pull request #117 from bcgov/fix/deploy-to-prod
Browse files Browse the repository at this point in the history
fix: removed versioning of switchover agent for now
  • Loading branch information
NithinKuruba authored Aug 15, 2023
2 parents 2048b10 + f126462 commit 2175e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 102 deletions.
99 changes: 0 additions & 99 deletions .github/workflows/publish-image-with-version.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
needs: [build-and-push-image]
strategy:
matrix:
license: [e4ca1d]
license: [e4ca1d, eb75ad]
env: [dev, test, prod]
runs-on: ubuntu-20.04
permissions:
Expand All @@ -85,7 +85,7 @@ jobs:
- uses: actions/checkout@v2

- name: Authenticate and set context
if: endsWith(github.ref, '/dev') && matrix.license == 'e4ca1d'
if: (endsWith(github.ref, '/dev') && matrix.license == 'e4ca1d' || endsWith(github.ref, '/main') && matrix.license == 'eb75ad')
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_GOLDDR }}
Expand All @@ -94,7 +94,7 @@ jobs:
insecure_skip_tls_verify: true

- name: Deploy app with Helm chart
if: endsWith(github.ref, '/dev') && matrix.license == 'e4ca1d'
if: (endsWith(github.ref, '/dev') && matrix.license == 'e4ca1d' || endsWith(github.ref, '/main') && matrix.license == 'eb75ad')
run: |
namespace=${{ matrix.license }}-${{ matrix.env }}
helm dep up
Expand Down

0 comments on commit 2175e14

Please sign in to comment.