Skip to content

Commit

Permalink
more changes to deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aforde-aot committed Aug 2, 2023
1 parent 1fe39f9 commit d1de74b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ defaults:
working-directory: ./openshift

env:

TAG_NAME: "test"
PROJECT_TYPE: "${{ github.event.inputs.project_type || 'GDX' }}" # If the project type is manually selected, use the input value; otherwise, use 'GDX' as default
oc project ${{ env.OPENSHIFT_REPOSITORY}}-tools

# Set OpenShift related variables based on PROJECT_TYPE
OPENSHIFT_LOGIN_REGISTRY: ${{ secrets.OPENSHIFT_LOGIN_REGISTRY }}
OPENSHIFT_SA_TOKEN: ${{ (github.event.inputs.project_type == 'EAO') && secrets.OPENSHIFT_SA_TOKEN_EAO || secrets.OPENSHIFT_SA_TOKEN }}

OPENSHIFT_REPOSITORY: ${{ (github.event.inputs.project_type == 'EAO') && secrets.OPENSHIFT_REPOSITORY_EAO || secrets.OPENSHIFT_REPOSITORY }}

jobs:
met-deployment:
runs-on: ubuntu-20.04
Expand All @@ -41,4 +43,7 @@ jobs:
- name: Tag Images and Rollout
shell: bash
run: |
sh deploy.sh ${{ github.event.inputs.environment }}
oc project ${{ env.OPENSHIFT_REPOSITORY}}-tools \
sh deploy.sh ${{ github.event.inputs.environment }} \
oc rollout status dc/met-api -n ${{ env.OPENSHIFT_REPOSITORY }}-${{ env.TAG_NAME }} -w
oc rollout status dc/met-web -n ${{ env.OPENSHIFT_REPOSITORY }}-${{ env.TAG_NAME }} -w

0 comments on commit d1de74b

Please sign in to comment.