ci: switched to my brothers solution #51

Merged
robin merged 2 commits from chore into main 2026-09-03 13:34:44 +00:00
Showing only changes of commit 4ad6175e43 - Show all commits
+14 -14
View File
@@ -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