Skip to content

Commit 895c22b

Browse files
authored
Merge pull request #31 from tinybirdco/fix-tb-auth
do tb auth before cd-deploy.sh
2 parents 339d188 + 3e7bed9 commit 895c22b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ jobs:
115115
116116
- name: run post CD deploy commands
117117
run: |
118+
tb auth \
119+
--host ${{ secrets.tb_host }} \
120+
--token ${{ secrets.tb_admin_token }}
118121
CD_DEPLOY_FILE=./deploy/${VERSION}/cd-deploy.sh
119122
if [ -f "$CD_DEPLOY_FILE" ]; then
120123
if ! [ -x "$CD_DEPLOY_FILE" ]; then

.gitlab/ci_cd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ variables:
190190
191191
# OPTIONALLY run post CD deploy commands (e.g.: tb pipe populate)
192192
- |
193+
tb auth \
194+
--host $TB_HOST \
195+
--token $TB_ADMIN_TOKEN
193196
CD_DEPLOY_FILE=./deploy/${VERSION}/cd-deploy.sh
194197
if [ -f "$CD_DEPLOY_FILE" ]; then
195198
if ! [ -x "$CD_DEPLOY_FILE" ]; then

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Next Release
22
=============
33

44
- Fix manual jobs for v3 releases on GitHub
5+
- Fix: Do `tb auth` before a custom deployment in the CD templates
56

67

78
v2.3.0

0 commit comments

Comments
 (0)