Skip to content

fix prod deploy cache #5

fix prod deploy cache

fix prod deploy cache #5

name: production-deploy
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Run deploy on production
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script_stop: true
script: |
cd /home/akatsuki/akatsuki-api
git pull origin master
docker build -t akatsuki-api:latest .
cd /home/akatsuki/workbench
docker-compose stop akatsuki-api
docker-compose up -d akatsuki-api