Do the same thing (again, almost) for the second step
This commit is contained in:
parent
6f064c7697
commit
a8618a66f5
1 changed files with 17 additions and 2 deletions
|
@ -38,11 +38,26 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
if: vars.DEPLOY_TEST == 1
|
if: vars.DEPLOY_TEST == 1
|
||||||
|
environment:
|
||||||
|
name: test
|
||||||
|
url: https://app.housingworks.net/
|
||||||
|
env:
|
||||||
|
BACKUP_DIR: "/home/app_test/backups"
|
||||||
|
BUILD_ROOT: build
|
||||||
|
SSH_TARGET: test
|
||||||
|
DEPLOY_ENV: test
|
||||||
|
DEPLOY_ROOT: /var/www/app.housingworks.net
|
||||||
|
DRUSH_DISABLE: ${{ vars.DRUSH_DISABLE }}
|
||||||
|
GOOGLEMAPS_API_KEY: ${{ secrets.GOOGLEMAPS_API_KEY }}
|
||||||
container:
|
container:
|
||||||
image: git.agaric.com/agaric/deploycontainer:0.0.3
|
image: git.agaric.com/agaric/deploycontainer:0.0.3
|
||||||
credentials:
|
credentials:
|
||||||
username: ${ github.actor }
|
username: ${ github.actor }
|
||||||
password: ${ secrets.github_token }
|
password: ${ secrets.github_token }
|
||||||
runs-on: docker
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo All Good, REALLY
|
- name: retrieve artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
||||||
|
- name: deploy to test
|
||||||
|
run: |
|
||||||
|
eval `ssh-agent -s`
|
||||||
|
ssh-add -l
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue