-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into ui-adjustments
- Loading branch information
Showing
2 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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 | ||
touch ~/.ssh/known_hosts | ||
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters