Skip to content

Commit

Permalink
Update helm-releaser-testkube-main-chart-only.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Jan 15, 2025
1 parent 2ee6644 commit 5ea65de
Showing 1 changed file with 0 additions and 74 deletions.
74 changes: 0 additions & 74 deletions .github/workflows/helm-releaser-testkube-main-chart-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ea65de

Please sign in to comment.