From 4ad6175e4311ac746048f7ffde7c3b7b1d11f37a Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Thu, 3 Sep 2026 13:34:26 +0000 Subject: [PATCH] ci: switched to my brothers solution --- .gitea/workflows/deploy.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 3cec894..fefcec5 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -23,21 +23,21 @@ jobs: VERSION=$(jq -r '.version' package.json) echo "VERSION=$VERSION" >> $GITHUB_ENV - - name: Build and Push Docker Image via CLI - run: | - IMAGE_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + - name: Log in to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: gitea:3000 + username: ${{ github.actor }} + password: ${{ secrets.GITEA_TOKEN }} - echo "Logging into Gitea Registry..." - echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea:3000 -u ${{ github.actor }} --password-stdin - - echo "Building Docker Image..." - docker build \ - -t gitea:3000/$IMAGE_NAME:v${{ env.VERSION }} \ - -t gitea:3000/$IMAGE_NAME:latest . - - echo "Pushing Docker Image..." - docker push gitea:3000/$IMAGE_NAME:v${{ env.VERSION }} - docker push gitea:3000/$IMAGE_NAME:latest + - name: Build and Push Docker Image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + gitea:3000/${{ github.repository }}:v${{ env.VERSION }} + gitea:3000/${{ github.repository }}:latest create-release: name: Create Gitea Release -- 2.54.1