forked from aslan/applicant-site
prodV1 #2
|
@ -45,10 +45,10 @@ jobs:
|
|||
sudo curl -o ~/.composer/keys.tags.pub -sL https://composer.github.io/releases.pub
|
||||
sudo curl -o ~/.composer/keys.dev.pub -sL https://composer.github.io/snapshots.pub
|
||||
|
||||
# - name: Install dependencies
|
||||
# env:
|
||||
# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works
|
||||
# run: composer install # will work
|
||||
- name: Install dependencies
|
||||
env:
|
||||
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works
|
||||
run: composer install # will work
|
||||
|
||||
- name: Setup project
|
||||
run: make setup
|
||||
|
@ -58,22 +58,22 @@ jobs:
|
|||
|
||||
- name: Check tests
|
||||
run: make test
|
||||
#
|
||||
# deploy:
|
||||
# needs: build
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: appleboy/ssh-action@v1.0.3
|
||||
#
|
||||
# with:
|
||||
# host: ${{ secrets.HOST }}
|
||||
# username: ${{ secrets.USERNAME }}
|
||||
# password: ${{ secrets.PASSWORD }}
|
||||
# port: ${{ secrets.PORT }}
|
||||
# script: |
|
||||
# cd /var/www/test-testabit/
|
||||
# git stash
|
||||
# git pull --rebase
|
||||
# git stash clear
|
||||
# make setup-test
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd /var/www/test-testabit/
|
||||
git stash
|
||||
git pull --rebase
|
||||
git stash clear
|
||||
make setup-test
|
||||
|
|
Loading…
Reference in New Issue