Compare commits

...

2 Commits

Author SHA1 Message Date
b75c4dfb56
Update README with new image URL 2024-07-07 23:45:23 +01:00
01f8e8c1d6
Update workflow for Gitea 2024-07-07 23:42:39 +01:00
2 changed files with 11 additions and 15 deletions

@ -10,10 +10,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -21,27 +17,27 @@ jobs:
- name: Setup Buildx - name: Setup Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry - name: Login to Container Registry
if: github.event_name != 'pull_request' if: gitea.event_name != 'pull_request'
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: git.jamsch0.dev
username: ${{github.actor}} username: ${{gitea.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.CI_TOKEN}}
- name: Extract metadata - name: Extract metadata
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
id: meta id: meta
with: with:
images: ghcr.io/jamsch0/groceries images: git.jamsch0.dev/jamsch0/groceries
tags: type=raw,value=latest,enable={{is_default_branch}} tags: type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: . context: .
cache-from: type=gha # cache-from: type=gha
cache-to: type=gha,mode=max # cache-to: type=gha,mode=max
push: ${{github.event_name != 'pull_request'}} push: ${{gitea.event_name != 'pull_request'}}
tags: ${{steps.meta.outputs.tags}} tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}} labels: ${{steps.meta.outputs.labels}}

@ -2,12 +2,12 @@
An application for (manually) tracking your grocery shopping habits. An application for (manually) tracking your grocery shopping habits.
## Installation ## Installation
A pre-built image is available at [ghcr.io/jamsch0/groceries](https://ghcr.io/jamsch0/groceries). A pre-built image is available at [git.jamsch0.dev/jamsch0/groceries](https://git.jamsch0.dev/jamsch0/groceries).
The default configuration can be found in `config.ini` once the volume has been created. The default configuration can be found in `config.ini` once the volume has been created.
Example usage: Example usage:
```bash ```bash
$ docker run -d -p 8080:80 -e LANG=en_GB TZ=Europe/London -v ./groceries:/config ghcr.io/jamsch0/groceries $ docker run -d -p 8080:80 -e LANG=en_GB TZ=Europe/London -v ./groceries:/config git.jamsch0.dev/jamsch0/groceries
``` ```
## Configuration ## Configuration