Skip to content

Commit

Permalink
Debug workflow envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajmohan committed Feb 21, 2024
1 parent 7dd10a1 commit 20955a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
sudo dpkg -i aptible-package
aptible login \
--email='${{ secrets.APTIBLE_USERNAME }}' \
--password='${{ secrets.APTIBLE_PASSWORD}}'
--password='${{ secrets.APTIBLE_PASSWORD }}'
git push --force ${{ vars.PROD_APTIBLE_REMOTE_URL }} ${GITHUB_SHA}:${{ vars.PROD_APTIBLE_REMOTE_BRANCH }}
aptible deploy \
--app sn-md-pilot-prod \
--app sn-md-pilot-prod2 \
--git-commitish ${GITHUB_SHA} \
'SPRING_DATASOURCE_URL=${{ secrets.PROD_SPRING_DATASOURCE_URL }}' \
'SPRING_DATASOURCE_USERNAME=${{ secrets.PROD_SPRING_DATASOURCE_USERNAME }}' \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
- name: Deploy Using Aptible CLI
run: |
ssh-keyscan beta.aptible.com >> ~/.ssh/known_hosts
ssh -T git@beta.aptible.com test
wget -O aptible-package https://omnibus-aptible-toolbelt.s3.amazonaws.com/aptible/omnibus-aptible-toolbelt/master/206/pkg/aptible-toolbelt_0.16.5%2B20200508143656~ubuntu.16.04-1_amd64.deb
sudo dpkg -i aptible-package
aptible login \
--email='${{ secrets.APTIBLE_USERNAME }}' \
--password='${{ secrets.APTIBLE_PASSWORD}}'
--password='${{ secrets.APTIBLE_PASSWORD }}'
echo "APTIBLE_REMOTE_URL: ${{ vars.APTIBLE_REMOTE_URL }}, APTIBLE_REMOTE_BRANCH: ${{ vars.APTIBLE_REMOTE_BRANCH }}, GITHUB_SHA: ${GITHUB_SHA}"
git push --force ${{ vars.APTIBLE_REMOTE_URL }} ${GITHUB_SHA}:${{ vars.APTIBLE_REMOTE_BRANCH }}
aptible deploy \
--app sn-md-pilot-staging \
Expand Down

0 comments on commit 20955a3

Please sign in to comment.