Skip to content

chore(.env.example): add CORS environment variable to allow cross-ori… #31

chore(.env.example): add CORS environment variable to allow cross-ori…

chore(.env.example): add CORS environment variable to allow cross-ori… #31

name: Cloud Build & Deploy
on:
push:
branches: [main]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE }}
port: ${{ secrets.SSH_PORT }}
script: |
cd ${{ secrets.FOLDER_PATH }}
git fetch
git checkout origin/main
docker compose build --no-cache
docker compose up -d --build --remove-orphans