Merge pull request 'ci: switched to my brothers solution' (#51) from chore into main
Build, Package & Release Next.js / Build & Push Docker Image (push) Failing after 18s
Build, Package & Release Next.js / Create Gitea Release (push) Skipped

Reviewed-on: Schanbro/PsalmTafel#51
This commit was merged in pull request #51.
This commit is contained in:
robin committed 2026-09-03 13:34:43 +00:00
commit e978e2fb99
1 file changed
+14 -14
+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