diff --git a/.gitea/workflows/backend.yml b/.gitea/workflows/backend.yml index 177d765..c7fcf37 100644 --- a/.gitea/workflows/backend.yml +++ b/.gitea/workflows/backend.yml @@ -8,6 +8,7 @@ on: push: paths: - "backend/**" + workflow_dispatch: {} jobs: build: @@ -22,10 +23,14 @@ jobs: # Tells the action to use the local 'git' binary we just installed set-safe-directory: 'true' + - name: Log in to Gitea Container Registry + # This uses the automated token provided natively by Gitea Actions + run: echo "${{ github.token }}" | docker login gitea.lan:3001 -u ${{ github.actor }} --password-stdin + - name: Build Docker image run: | docker buildx build \ --platform linux/arm64 \ - -t babymonitor-backend:latest \ + -t gitea.lan:3001/jacobh2/babymonitor:backend-latest \ ./backend \ --load