Merge pull request #33 from AmorGakCo/hotfix/#31 #9
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: AmorGakCo CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ssh access | |
uses: appleboy/ssh-action@v1.0.3 | |
with: | |
host: ${{secrets.GCP_HOST}} | |
username: ${{secrets.GCP_USERNAME}} | |
key: ${{secrets.GCP_SECRET}} | |
script: | | |
cd Backend | |
git pull | |
sudo docker-compose down | |
sudo docker-compose up -d --build |