Skip to content

Commit e33c412

Browse files
committedJul 23, 2024
ci: remove the docker / k8s DR and fix the slack message
1 parent bf7292b commit e33c412

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed
 

‎.github/workflows/release_production.yml

+7-25
Original file line numberDiff line numberDiff line change
@@ -82,37 +82,19 @@ jobs:
8282
with:
8383
name: build
8484
path: build
85-
- name: Publish to Docker
86-
id: publish_to_docker
87-
uses: ./.github/actions/publish_to_docker
88-
with:
89-
DOCKER_LATEST_IMAGE_TAG: 'latest'
90-
DOCKER_IMAGE_TAG: ${{ github.ref_name }}
91-
DOCKERHUB_ORGANISATION: ${{ secrets.DOCKERHUB_ORGANISATION }}
92-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
93-
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
94-
- name: Deploy to Kubernetes
95-
id: deploy_to_kubernetes
96-
uses: ./.github/actions/deploy_to_kubernetes
97-
with:
98-
K8S_VERSION: ${{ github.ref_name }}
99-
K8S_NAMESPACE: 'deriv-com-api-production'
100-
CA_CRT: ${{ secrets.CA_CRT }}
101-
SERVICEACCOUNT_TOKEN: ${{ secrets.SERVICEACCOUNT_TOKEN }}
102-
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
103-
DOCKERHUB_ORGANISATION: ${{ secrets.DOCKERHUB_ORGANISATION }}
104-
- name: Send Slack Notification
105-
if: ${{ steps.publish_to_docker.outcome != 'success' || steps.deploy_to_kubernetes.outcome != 'success' }}
106-
uses: ./.github/actions/notify_slack
107-
with:
108-
RELEASE_TYPE: ${{ env.RELEASE_TYPE }}
109-
MESSAGE: "'${{ env.RELEASE_TYPE }}' Release succeeded for api.deriv.com with version *'${{ needs.build_and_publish.outputs.RELEASE_VERSION }}'* has Failed *"
11085
- name: Upload to vercel
11186
uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master'
87+
id: publish_to_vercel
11288
with:
11389
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
11490
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
11591
VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
11692
ENVIRONMENT: Production
11793
VERCEL_SCOPE: deriv
11894
ALIAS_DOMAIN_URL: 'api-docs-dr.binary.sx'
95+
- name: Send Slack Notification
96+
if: always() && ${{ steps.publish_to_vercel.outcome != 'success'}}
97+
uses: ./.github/actions/notify_slack
98+
with:
99+
RELEASE_TYPE: ${{ env.RELEASE_TYPE }}
100+
MESSAGE: "Publish to vercel failed for '${{ env.RELEASE_TYPE }}' release on api.deriv.com with version *'${{ needs.build_and_publish.outputs.RELEASE_VERSION }}"

0 commit comments

Comments
 (0)