Skip to content

Commit

Permalink
#115 - force pass env variable to make script in deploy workflows (#275)
Browse files Browse the repository at this point in the history
force pass env variable to make script in deploy workflows
  • Loading branch information
mtracz authored Dec 7, 2022
1 parent d86ff6d commit 766e006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deploy-to-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,15 @@ jobs:

- name: run deployment script over ssh
uses: appleboy/[email protected]
env:
TEST_NAME: ${{ needs.pr_commented.outputs.branch-name }}
BRANCH_NAME: ${{ env.BRANCH_NAME }}
with:
timeout: 10s
command_timeout: 10m
host: ${{ secrets.TOBY_VPS_HOST }}
port: ${{ secrets.TOBY_VPS_PORT }}
username: ${{ secrets.TOBY_VPS_USERNAME }}
password: ${{ secrets.TOBY_VPS_PASSWORD }}
envs: BRANCH_NAME,TEST_NAME
script_stop: true
debug: true
script: make --makefile=/blumilk/beta/projects/toby/Makefile beta-deploy
script: BRANCH_NAME=${{ env.BRANCH_NAME }} make --makefile=/blumilk/beta/projects/toby/Makefile beta-deploy

- name: comment PR that changes has been deployed to beta
if: github.event_name != 'workflow_dispatch'
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
port: ${{ secrets.TOBY_VPS_PORT }}
username: ${{ secrets.TOBY_VPS_USERNAME }}
password: ${{ secrets.TOBY_VPS_PASSWORD }}
envs: BRANCH_NAME
script_stop: true
script: make --makefile=/blumilk/production/toby/Makefile prod-deploy
script: BRANCH_NAME=${{ env.BRANCH_NAME }} make --makefile=/blumilk/production/toby/Makefile prod-deploy

0 comments on commit 766e006

Please sign in to comment.