Update README.md #27
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: dockerrebuildandupdatethingo | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
port: ${{ secrets.PORT }} | |
script: | | |
echo "epik deployment script!!1!@2!" | |
docker stop pinpoint | |
docker rm pinpoint | |
echo "downtime :(" | |
cd /root/beginner-2023summer-g4 | |
git pull origin main | |
echo "updated!!!!!!" | |
docker build -t perthpinpoint . | |
docker run --mount type=bind,source="$(pwd)/app/core",target=/pinpoint/app/core -dp 0.0.0.0:80:8080 --name "pinpoint" perthpinpoint | |
echo "rebuilt +done" |