Skip to content

Commit

Permalink
deploy.yaml deploy.sh change
Browse files Browse the repository at this point in the history
  • Loading branch information
aforde-aot committed Aug 2, 2023
1 parent d1de74b commit d067319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ defaults:
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 }}
Expand All @@ -43,7 +42,7 @@ jobs:
- name: Tag Images and Rollout
shell: bash
run: |
oc project ${{ env.OPENSHIFT_REPOSITORY}}-tools \
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
5 changes: 1 addition & 4 deletions openshift/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
oc project e903c2-tools

oc tag met-api:latest met-api:$1
oc tag notify-api:latest notify-api:$1
oc tag analytics-api:latest analytics-api:$1
oc tag met-cron:latest met-cron:$1
oc tag met-web:latest met-web:$1
oc tag met-analytics:latest met-analytics:$1
oc tag dagster-etl:latest dagster-etl:$1

oc rollout status dc/met-api -n e903c2-$1 -w
oc rollout status dc/met-web -n e903c2-$1 -w

0 comments on commit d067319

Please sign in to comment.