Skip to content

Merge pull request #87 from codersforcauses/al #10

Merge pull request #87 from codersforcauses/al

Merge pull request #87 from codersforcauses/al #10

Workflow file for this run

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 "this is terrible"
docker stop pinpoint
docker rm pinpoint
cd /root/beginner-2023summer-g4
git pull origin main
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