This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,18 @@ inputs:
2323runs :
2424 using : composite
2525 steps :
26- - name : Setup Environment variables
27- run : |
28- echo "NAMESPACE=${{ inputs.K8S_NAMESPACE }}" >> "$GITHUB_ENV"
29- echo "KUBE_SERVER=${{ inputs.KUBE_SERVER }}" >> "$GITHUB_ENV"
30- echo "SERVICEACCOUNT_TOKEN=${{ inputs.SERVICEACCOUNT_TOKEN }}" >> "$GITHUB_ENV"
31- echo "DOCKERHUB_ORGANISATION=${{ inputs.DOCKERHUB_ORGANISATION }}" >> "$GITHUB_ENV"
32- echo "CA_CRT=${{ inputs.CA_CRT }}" >> "$GITHUB_ENV"
33- echo "APP_NAME=deriv-com-api" >> "$GITHUB_ENV"
34- shell : bash
3526 - name : Deploying to k8s cluster for service ${{ inputs.K8S_NAMESPACE }} 🚀
27+ env :
28+ NAMESPACE : ${{ inputs.K8S_NAMESPACE }}
29+ KUBE_SERVER : ${{ inputs.KUBE_SERVER }}
30+ SERVICEACCOUNT_TOKEN : ${{ inputs.SERVICEACCOUNT_TOKEN }}
31+ DOCKERHUB_ORGANISATION : ${{ inputs.DOCKERHUB_ORGANISATION }}
32+ CA_CRT : ${{ inputs.CA_CRT }}
33+ APP_NAME : deriv-com-api
3634 run : |
3735 git clone https://github.com/binary-com/devops-ci-scripts
3836 cd devops-ci-scripts/k8s-build_tools
39- echo ${{ inputs. CA_CRT }} | base64 --decode > ca.crt
37+ echo $CA_CRT | base64 --decode > ca.crt
4038 export CA="ca.crt"
41- ./release.sh ${APP_NAME} ${{ inputs. K8S_VERSION }}
39+ ./release.sh ${APP_NAME} $K8S_VERSION
4240 shell : bash
Original file line number Diff line number Diff line change 2525 run : |-
2626 npm i wrangler@3.10.1
2727 cd build
28- npx wrangler pages deploy . --project-name=${{ env. PROJECT_NAME }} --branch=${{ env. CF_BRANCH }}
29- echo "New staging website - https://${{ env. CF_BRANCH }} -api.deriv.com/"
28+ npx wrangler pages deploy . --project-name=$PROJECT_NAME --branch=$CF_BRANCH
29+ echo "New staging website - https://$CF_BRANCH-api.deriv.com/"
3030 shell : bash
You can’t perform that action at this time.
0 commit comments