Skip to content

add offline mode. Now user can read notes in offline mode from cache #33

add offline mode. Now user can read notes in offline mode from cache

add offline mode. Now user can read notes in offline mode from cache #33

Workflow file for this run

name: Frontend CI/CD
on:
push:
branches: ["main", "master", "rk4"]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npm ci
- run: npm run lint
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/goose-frontend:latest
deploy:
needs: build-and-push
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /home/${{ secrets.SSH_USER }}/deploy
docker compose -f docker-compose.prod.yaml pull frontend
docker compose -f docker-compose.prod.yaml up -d --no-deps frontend
docker image prune -f