.gitea/workflows/deploy.yaml aktualisiert

This commit is contained in:
robin committed 2026-09-03 13:51:17 +00:00
1 parent 157609225f
commit d6475f1c5b
1 file changed
+6 -2
+6 -2
View File
@@ -9,12 +9,15 @@ jobs:
build-and-push:
name: Build & Push Docker Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # <-- Das erlaubt das Pushen in die Container Registry
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITEA_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
repository-url: http://gitea:3000/${{ github.repository }}
ref: main
@@ -25,7 +28,8 @@ jobs:
- name: Log in to Gitea Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login gitea:3000 -u ${{ github.actor }} --password-stdin
USER_LOWER=$(echo "${{ github.actor }}" | tr '[:upper:]' '[:lower:]')
echo "${{ secrets.GITHUB_TOKEN }}" | docker login gitea:3000 -u "$USER_LOWER" --password-stdin
- name: Docker Image bauen (nur lokal im Runner)
uses: docker/build-push-action@v5