diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..aea52c6 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,51 @@ +name: Build & Publish Docker Image + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + REGISTRY: git.necloud.us + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Extract metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=sha,prefix=sha- + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: ${{ github.event_name == 'push' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..a11777c Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..0be728f --- /dev/null +++ b/public/index.html @@ -0,0 +1,43 @@ + + +
+ + + + + + + + + +Bring your requests. Record His faithfulness.
+ +Loading prayers…
} + ++ Notifications are sent via ntfy.sh — a free, open-source push service. + Install the ntfy app on your phone and subscribe to your topic to receive notifications. +
+ +{highlight(prayer.person, searchQuery)}
+ )} +{highlight(prayer.request, searchQuery)}
+{highlight(prayer.answer, searchQuery)}
+ {prayer.answeredAt && ( + Answered {formatDate(prayer.answeredAt)} + )} + +{entry.note}
} +No prayer sessions logged yet.
+ )} +{totalThisMonth} prayer session{totalThisMonth !== 1 ? 's' : ''} this month
+ )} + +No prayer sessions on this day.
+ ) : ( +{entry.note}
} +