Skip to content

Merge branch 'main' into dev #1

Merge branch 'main' into dev

Merge branch 'main' into dev #1

Workflow file for this run

name: deploy-dev
on:
push:
branches:
- dev
jobs:
deploy-via-ssh:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIV_KEY_DEV }}" > ~/.ssh/id_rsa
echo "${{ secrets.SSH_PUB_KEY_DEV }}" > ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
ssh-keyscan -H ${{ secrets.IP_DEV }} >> ~/.ssh/known_hosts
- name: Deploy via SSH
run: |
ssh ${{ secrets.USER_AND_IP_DEV }} 'cd /home/loco/team-learning && git pull && docker compose -f traefik.docker-compose.yml up -d'