Skip to content

Commit

Permalink
Merge pull request tinybirdco#8 from tinybirdco/fix/github_custom_cd_…
Browse files Browse the repository at this point in the history
…path

Fix/GitHub custom cd path
  • Loading branch information
jlmadurga authored Aug 3, 2023
2 parents 1b94701 + 9e689e4 commit f29ea93
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ jobs:

- name: Deploy changes to the main Workspace
run: |
if ${{ inputs.tb_deploy}}; then
source .tinyenv
if ${{ inputs.tb_deploy}}; then
tb env deploy --semver ${VERSION} --wait
tb release ls
else
CD_DEPLOY_FILE=./deploy/${VERSION}/cd-deploy.sh
if [ ! -f "$CD_DEPLOY_FILE" ]; then
tb auth \
tb auth \
--host ${{ secrets.tb_host }} \
--token ${{ secrets.admin_token }}
CD_DEPLOY_FILE=./deploy/${VERSION}/cd-deploy.sh
if [ ! -f "$CD_DEPLOY_FILE" ]; then
tb deploy
fi
fi
Expand All @@ -100,8 +101,6 @@ jobs:
./deploy/${VERSION}/cd-deploy.sh
fi
- name: echo result
run: echo "A new Release with version $VERSION has been deployed in preview status. When you want to make it live use `tb release promote --semver $VERSION`"
cleanup:
runs-on: ubuntu-latest
defaults:
Expand Down

0 comments on commit f29ea93

Please sign in to comment.