eventlistener fix #125
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
name: Deploy Frontend | |
on: | |
push: | |
branches: | |
- newfront | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up SSH | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.VM_SSH_KEY }}" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
echo "Host 37.139.40.252 | |
StrictHostKeyChecking no" > ~/.ssh/config | |
- name: Execute script on VM | |
run: | | |
ssh [email protected] 'bash -s' <<EOF | |
cd front | |
sudo git pull origin newfront | |
docker compose build | |
docker compose up -d | |
EOF |