Skip to content

fix: add prefix path #9

fix: add prefix path

fix: add prefix path #9

Workflow file for this run

name: Deploy API
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: npx nx run api:image:build
- run: npx nx run api:image:push
deploy:
runs-on: ubuntu-latest
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
script: |
docker pull gatherloop/gatherloop-pos-api
docker stop gatherloop-pos-api
docker start gatherloop-pos-api
docker image prune -a