CEC-3236 Germany (#264)
* CEC-3236 Germany testing initial workflow * CEC-3236 Germany testing * CEC-3236 testing germany * CEC-3236 removing euprdTest and adding it to deploy Co-authored-by: Christopher Rai <christopherrai@Christophers-MacBook-Pro.local>
This commit is contained in:
28
.github/workflows/deploy.yml
vendored
28
.github/workflows/deploy.yml
vendored
@@ -84,6 +84,17 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Build and push Germany
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
build-args: ENVIRONMENT=cec-eu${{ env.ENVIRONMENT }}
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-cec-eu${{ env.ENVIRONMENT }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: [self-hosted, azure]
|
||||
@@ -130,6 +141,23 @@ jobs:
|
||||
MSG_MINIMAL: true
|
||||
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to cec-${{ env.ENVIRONMENT }}! :gopher_party:"
|
||||
|
||||
- name: Deploy Germany
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |-
|
||||
helm upgrade \
|
||||
--kube-context cec-eu$ENVIRONMENT-cluster-1 \
|
||||
--set image.registry=$REGISTRY \
|
||||
--set image.name=$PROJECT \
|
||||
--set image.tag=$TAG-cec-eu$ENVIRONMENT \
|
||||
--wait -i -f k8s/values-cec-eu$ENVIRONMENT.yaml $PROJECT k8s/
|
||||
|
||||
- name: Notify deploy Germany
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: rtCamp/action-slack-notify@v2
|
||||
env:
|
||||
MSG_MINIMAL: true
|
||||
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to cec-eu${{ env.ENVIRONMENT }}! :gopher_party:"
|
||||
|
||||
- name: Notify if failure
|
||||
if: ${{ failure() }}
|
||||
uses: rtCamp/action-slack-notify@v2
|
||||
|
||||
Reference in New Issue
Block a user