Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Ako/ pass secrets to env (#5981)
Browse files Browse the repository at this point in the history
* ci: pass K8S secrets to envs

* ci: convert inline env to env param
  • Loading branch information
ali-hosseini-deriv authored Nov 21, 2023
1 parent 558f420 commit ffd89ec
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 25 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,16 @@ jobs:
docker push ${{ secrets.DOCKHUB_ORGANISATION }}/deriv-com:$GIT_TAG_NAME
- name: Deploy 🚀
env:
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
SERVICEACCOUNT_TOKEN: ${{ secrets.SERVICEACCOUNT_TOKEN }}
CA_CRT: ${{ secrets.CA_CRT }}
NAMESPACE: deriv-com-production
CA: ca.crt
run: |
echo "NAMESPACE=deriv-com-production" >> $GITHUB_ENV
echo "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" >> $GITHUB_ENV
echo "SERVICEACCOUNT_TOKEN=${{ secrets.SERVICEACCOUNT_TOKEN }}" >> $GITHUB_ENV
git clone https://github.com/binary-com/devops-ci-scripts
cd devops-ci-scripts/k8s-build_tools
echo ${{ secrets.CA_CRT}} | base64 --decode > ca.crt
echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt
./release.sh deriv-com $GIT_TAG_NAME
- name: Slack Notification 📣
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,17 @@ jobs:
docker push ${{ secrets.DOCKHUB_ORGANISATION }}/deriv-com:$GITHUB_SHA
- name: Deploy 🚀
env:
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
SERVICEACCOUNT_TOKEN: ${{ secrets.SERVICEACCOUNT_TOKEN }}
CA_CRT: ${{ secrets.CA_CRT }}
NAMESPACE: deriv-com-staging
CA: ca.crt
run: |
echo "NAMESPACE=deriv-com-staging" >> $GITHUB_ENV
echo "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" >> $GITHUB_ENV
echo "SERVICEACCOUNT_TOKEN=${{ secrets.SERVICEACCOUNT_TOKEN }}" >> $GITHUB_ENV
git clone https://github.com/binary-com/devops-ci-scripts
cd devops-ci-scripts/k8s-build_tools
echo ${{ secrets.CA_CRT}} | base64 --decode > ca.crt
export CA="ca.crt"
./release.sh deriv-com $GITHUB_SHA
echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt
./release.sh deriv-com $GIT_TAG_NAME
- name: Slack Notification 📣
uses: 8398a7/action-slack@v3
Expand Down
2 changes: 1 addition & 1 deletion src/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "موظف",
"-651384976": "الجنسيات",
"-1033881248": "شاهد صفقاتنا المفتوحة"
}
}
2 changes: 1 addition & 1 deletion src/translations/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "কর্মচারী",
"-651384976": "জাতীয়তা",
"-1033881248": "আমাদের ওপেন পজিশন দেখুন"
}
}
2 changes: 1 addition & 1 deletion src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "empleados",
"-651384976": "nacionalidades",
"-1033881248": "Vea nuestros puestos disponibles"
}
}
2 changes: 1 addition & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "dipendenti",
"-651384976": "nazionalità",
"-1033881248": "Vedi le posizioni aperte"
}
}
2 changes: 1 addition & 1 deletion src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "직원",
"-651384976": "출신 국적",
"-1033881248": "채용 정보 보기"
}
}
2 changes: 1 addition & 1 deletion src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "pracowników",
"-651384976": "narodowości",
"-1033881248": "Zobacz nasze otwarte pozycje"
}
}
2 changes: 1 addition & 1 deletion src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "funcionários",
"-651384976": "nacionalidades",
"-1033881248": "Consulte as vagas disponíveis"
}
}
2 changes: 1 addition & 1 deletion src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "сотрудников",
"-651384976": "национальностей",
"-1033881248": "Смотреть вакансии"
}
}
2 changes: 1 addition & 1 deletion src/translations/si.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "සේවකයින්",
"-651384976": "ජාතීන්",
"-1033881248": "අපගේ විවෘත ස්ථාන බලන්න"
}
}
2 changes: 1 addition & 1 deletion src/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "wafanyakazi",
"-651384976": "mataifa",
"-1033881248": "Angalia nafasi zetu za wazi"
}
}
2 changes: 1 addition & 1 deletion src/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "พนักงาน",
"-651384976": "สัญชาติ",
"-1033881248": "ดูตำแหน่งงานที่เปิดรับ"
}
}
2 changes: 1 addition & 1 deletion src/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "çalışanlar",
"-651384976": "milliyetler",
"-1033881248": "Açık pozisyonlarımızı görün"
}
}
2 changes: 1 addition & 1 deletion src/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "nhân viên",
"-651384976": "dân tộc",
"-1033881248": "Xem các vị trí đang tuyển"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "雇员",
"-651384976": "国籍",
"-1033881248": "查看空缺职位"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,4 +4568,4 @@
"-1165835520": "僱員",
"-651384976": "國籍",
"-1033881248": "查看空缺職位"
}
}

1 comment on commit ffd89ec

@vercel
Copy link

@vercel vercel bot commented on ffd89ec Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com.binary.sx
deriv-com-git-master.binary.sx

Please sign in to comment.