Skip to content

Commit

Permalink
ci: fix test and prod build versions from right location (#37)
Browse files Browse the repository at this point in the history
* ci: fix test and prod build versions from right location

* ci: remove env from action deploywer
  • Loading branch information
Ricardo Campos authored and DerekRoberts committed May 14, 2024
1 parent 4766d86 commit 425a063
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ jobs:
- release
environment: test
runs-on: ubuntu-22.04
env:
ZONE: test
NR_SPAR_BACKEND_VERSION: ${{ needs.release.outputs.version }}
strategy:
matrix:
name: [ init, database, backend ]
Expand All @@ -201,7 +198,7 @@ jobs:
- name: backend
file: backend/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 -p BUILD=test-${{ env.NR_SPAR_BACKEND_VERSION }}
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 -p BUILD=test-${{ needs.release.outputs.version }}
steps:
- uses: bcgov-nr/action-deployer-openshift@v1.0.1
with:
Expand Down Expand Up @@ -260,10 +257,6 @@ jobs:
- api-tests
environment: prod
runs-on: ubuntu-22.04
env:
ZONE: prod
PREV: test
NR_SPAR_BACKEND_VERSION: ${{ needs.release.outputs.version }}
strategy:
matrix:
name: [ init, database, backend ]
Expand All @@ -277,7 +270,7 @@ jobs:
- name: backend
file: backend/openshift.deploy.yml
overwrite: true
parameters: -p BUILD=test-${{ env.NR_SPAR_BACKEND_VERSION }}
parameters: -p BUILD=prod-${{ needs.release.outputs.version }}
steps:
- uses: bcgov-nr/action-deployer-openshift@v1.0.1
with:
Expand All @@ -298,5 +291,5 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
target: backend:${{ env.PREV }}
tags: ${{ env.ZONE }}
target: backend:test
tags: prod

0 comments on commit 425a063

Please sign in to comment.