This commit is contained in:
parent
939f6da0c4
commit
5f5271e1b5
@@ -18,14 +18,15 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Install PHP & Deployer
|
||||
run: |
|
||||
sudo apt-get install -y php-cli
|
||||
curl -LO https://deployer.org/deployer.phar
|
||||
chmod +x deployer.phar
|
||||
|
||||
- name: Deploy
|
||||
- name: Deploy via Deployer
|
||||
env:
|
||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: php deployer.phar deploy production -vvv
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "$PWD:/app" \
|
||||
-v "$HOME/.ssh:/root/.ssh:ro" \
|
||||
-e DEPLOY_HOST \
|
||||
-e GITEA_TOKEN \
|
||||
-w /app \
|
||||
deployer/deployer:7 dep deploy production -vvv
|
||||
|
||||
Reference in New Issue
Block a user