Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 327a502

Browse files
committed
chore: updated action workflows
1 parent 43b185b commit 327a502

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/actions/deploy_to_kubernetes/action.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,18 @@ inputs:
2323
runs:
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

.github/actions/publish_to_pages/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ runs:
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

0 commit comments

Comments
 (0)