Skip to content

Commit

Permalink
start dev deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Apr 17, 2024
1 parent 552539e commit ff8703c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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'

0 comments on commit ff8703c

Please sign in to comment.