Add new image name

This commit is contained in:
Max Bachhuber 2023-05-24 17:31:31 +02:00
parent 1f1fe43c6e
commit a815351282
2 changed files with 13 additions and 3 deletions

View File

@ -3,7 +3,12 @@ name: ci
on: on:
push: push:
branches: branches:
- main - 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
@ -34,6 +39,11 @@ jobs:
uses: docker/metadata-action@v2 uses: docker/metadata-action@v2
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4

View File

@ -53,7 +53,7 @@ version: '3.3'
services: services:
categorizer: categorizer:
image: bahuma20/firefly-iii-ai-categorize:latest image: ghcr.io/bahuma20/firefly-iii-ai-categorize:latest
restart: always restart: always
ports: ports:
- "3000:3000" - "3000:3000"
@ -80,7 +80,7 @@ docker run -d \
-e FIREFLY_URL=https://firefly.example.com \ -e FIREFLY_URL=https://firefly.example.com \
-e FIREFLY_PERSONAL_TOKEN=eyabc123... \ -e FIREFLY_PERSONAL_TOKEN=eyabc123... \
-e OPENAI_API_KEY=sk-abc123... \ -e OPENAI_API_KEY=sk-abc123... \
bahuma20/firefly-iii-ai-categorize:latest ghcr.io/bahuma20/firefly-iii-ai-categorize:latest
``` ```
### 4. Set up the webhook ### 4. Set up the webhook