Skip to content

Commit

Permalink
cicd wip
Browse files Browse the repository at this point in the history
  • Loading branch information
clezag committed Nov 30, 2023
1 parent 3a852b6 commit 9d2b815
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/meteorology-eurac-tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ env:
JAVA_VERSION: 17
WORKING_DIRECTORY: transformers/meteorology-eurac
DOCKER_IMAGE: ghcr.io/noi-techpark/odh-v2-playground/meteorology-eurac-tr
DOCKER_TAG: 0.2.0
DOCKER_TAG: ${{ github.sha }}
KUBERNETES_NAMESPACE: collector


jobs:
deploy-test:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/meteorology-eurac'
if: github.ref == 'refs/heads/main'
concurrency: deploy-test-meteorology-eurac-tr
steps:
- name: Checkout source code
Expand Down Expand Up @@ -61,4 +62,9 @@ jobs:
run: |
RELEASETIME=`date +%s`
cd transformers/meteorology-eurac
helm upgrade --install tr-meteorology-eurac ../../helm/generic-collector --values infrastructure/helm/values.yaml --set-string podAnnotations.releaseTime=$RELEASETIME
helm upgrade --install tr-meteorology-eurac ../../helm/generic-collector \
--values infrastructure/helm/values.yaml \
--set-string image.repository=$DOCKER_IMAGE \
--set-string image.tag=$DOCKER_TAG \
--set-string image.pullPolicy=IfNotPresent \
--namespace $KUBERNETES_NAMESPACE

0 comments on commit 9d2b815

Please sign in to comment.