-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update helm-releaser-testkube-main-chart-only.yaml
- Loading branch information
Showing
1 changed file
with
0 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,80 +166,6 @@ jobs: | |
repository: kubeshop/testkube-cloud-charts | ||
event-type: trigger-workflow-testkube-agent-main | ||
client-payload: '{"agentVersion": "${{ env.agent-version }}"}' | ||
|
||
deploy-to-testkube-dev-gke: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
needs: notify_slack_if_release_succeeds | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
|
||
- id: get-credentials | ||
uses: google-github-actions/get-gke-credentials@v2 | ||
with: | ||
cluster_name: ${{ env.GKE_CLUSTER_NAME_DEV }} | ||
location: ${{ env.GKE_ZONE }} | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.10.0 | ||
|
||
- name: Installing repositories | ||
run: | | ||
helm repo add helm-charts https://kubeshop.github.io/helm-charts | ||
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami | ||
# Deploy the Docker image to the GKE cluster | ||
- name: Deploy | ||
run: |- | ||
helm upgrade --install --atomic --timeout 180s testkube helm-charts/testkube --namespace testkube-integration --create-namespace --values ./charts/testkube/values-stage.yaml --debug --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false --set testkube-operator.enabled=false | ||
notify_slack_if_deploy_dev_succeeds: | ||
runs-on: ubuntu-latest | ||
needs: deploy-to-testkube-dev-gke | ||
steps: | ||
- name: Slack Notification if the helm release deployment to DEV GKS succeeded. | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: testkube-logs | ||
SLACK_COLOR: ${{ needs.deploy-to-testkube-dev-gke.result }} # or a specific color like 'good' or '#ff00ff' | ||
SLACK_ICON: https://github.com/rtCamp.png?size=48 | ||
SLACK_TITLE: Helm chart release successfully deployed into ${{ secrets.GKE_CLUSTER_NAME_DEV }} GKE :party_blob:! | ||
SLACK_USERNAME: GitHub | ||
SLACK_LINK_NAMES: true | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_FOOTER: "Kubeshop --> TestKube" | ||
|
||
notify_slack_if_deploy_dev_failed: | ||
runs-on: ubuntu-latest | ||
needs: deploy-to-testkube-dev-gke | ||
if: always() && (needs.deploy-to-testkube-dev-gke.result == 'failure') | ||
steps: | ||
- name: Slack Notification if the helm release deployment to DEV GKS failed. | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: testkube-logs | ||
SLACK_COLOR: ${{ needs.deploy-to-testkube-dev-gke.result }} # or a specific color like 'good' or '#ff00ff' | ||
SLACK_ICON: https://github.com/rtCamp.png?size=48 | ||
SLACK_TITLE: Helm chart release failed to deploy into ${{ secrets.GKE_CLUSTER_NAME_DEV }} GKE! :boom:! | ||
SLACK_USERNAME: GitHub | ||
SLACK_LINK_NAMES: true | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_FOOTER: "Kubeshop --> TestKube" | ||
|
||
update_release_notes: | ||
needs: notify_slack_if_release_succeeds | ||
runs-on: ubuntu-latest | ||
|