Self-hosted fitness tracker. Log workouts, track nutrition, and monitor progress. Docker deployment, mobile-friendly.
Feature/fly cd pipeline (#8)
Carter3a59dc317c7f
diff --git a/.github/workflows/docker.yml b/.github/workflows/ci.ymlsimilarity index 89%rename from .github/workflows/docker.ymlrename to .github/workflows/ci.ymlindex 851533c..6c7a4c3 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/ci.yml@@ -1,4 +1,4 @@-name: Build & Push to Docker Hub+name: CIon:push:@@ -9,6 +9,7 @@ on:jobs:test:+ name: Go unit testsruns-on: ubuntu-lateststeps:- uses: actions/checkout@v4@@ -20,6 +21,7 @@ jobs:- run: cd backend && go test ./controllers/ -timeout 30se2e:+ name: Playwright E2Eruns-on: ubuntu-lateststeps:- uses: actions/checkout@v4@@ -83,6 +85,7 @@ jobs:retention-days: 7build-backend:+ name: Build & push backend imageneeds: [test, e2e]runs-on: ubuntu-lateststeps:@@ -111,6 +114,7 @@ jobs:cache-to: type=gha,scope=lyftr-backend,mode=maxbuild-frontend:+ name: Build & push frontend imageneeds: [test, e2e]runs-on: ubuntu-lateststeps:@@ -137,3 +141,16 @@ jobs:tags: ${{ steps.meta.outputs.tags }}cache-from: type=gha,scope=lyftr-frontendcache-to: type=gha,scope=lyftr-frontend,mode=max++ deploy-demo:+ name: Deploy to Fly.io+ needs: [test, e2e]+ if: github.ref == 'refs/heads/main' && github.event_name == 'push'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: superfly/flyctl-actions/setup-flyctl@master+ - name: Deploy+ run: flyctl deploy --remote-only+ env:+ FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}