ci: simplify workflow by executing host deploy script directly
Some checks failed
Deploy Canina / deploy (push) Failing after 1s
Some checks failed
Deploy Canina / deploy (push) Failing after 1s
This commit is contained in:
parent
577537ebe5
commit
cded33de29
@ -11,21 +11,10 @@ jobs:
|
||||
runs-on: canina
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Setup SSH key
|
||||
- name: Deploy via Host Script (with VPN)
|
||||
shell: sh
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
- name: Deploy via SSH (with VPN for docker build)
|
||||
shell: sh
|
||||
timeout-minutes: 28
|
||||
env:
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
echo "Deploying branch: ${BRANCH}"
|
||||
ssh -o StrictHostKeyChecking=no -p 2234 devops@172.17.0.1 \
|
||||
"sudo bash /opt/services/scripts/with-vpn.sh \"bash /opt/services/canina/deploy.sh ${BRANCH}\""
|
||||
sudo bash /opt/services/scripts/with-vpn.sh "bash /opt/services/canina/deploy.sh ${BRANCH}"
|
||||
Loading…
Reference in New Issue
Block a user