Skip to content

chore: add readme for describe tech stack section #136

chore: add readme for describe tech stack section

chore: add readme for describe tech stack section #136

Workflow file for this run

name: Deploy API
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: docker build -t gatherloop/gatherloop-pos-api -f apps/api/Dockerfile .
- run: docker push gatherloop/gatherloop-pos-api
- 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 container stop gatherloop-pos-api
docker container remove gatherloop-pos-api
docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'gatherloop/gatherloop-pos-api')
docker pull gatherloop/gatherloop-pos-api
docker run --name gatherloop-pos-api --network gatherloop-pos-network -e DB_USERNAME=${{ secrets.DB_USERNAME }} -e "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" -e DB_NAME=${{ secrets.DB_NAME }} -e DB_HOST=${{ secrets.DB_HOST }} -e DB_PORT=${{ secrets.DB_PORT }} -e PORT=${{ secrets.API_PORT }} -p ${{ secrets.API_PORT }}:${{ secrets.API_PORT }} -d gatherloop/gatherloop-pos-api