From 212a38e454b53890292aed7ef0dd539e610dcc38 Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Sun, 25 Jan 2026 20:39:24 +0100 Subject: [PATCH] fix: ci/cd registry --- .gitea/workflows/publish-docker.yml | 38 ++--------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/.gitea/workflows/publish-docker.yml b/.gitea/workflows/publish-docker.yml index a99035c..ae54074 100644 --- a/.gitea/workflows/publish-docker.yml +++ b/.gitea/workflows/publish-docker.yml @@ -14,30 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 -# - name: install Trivy Security scanner -# run: | -# curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin -# -# - name: Lint & Format Check python code with ruff -# uses: astral-sh/ruff-action@v3 -# -# - name: Lint Dockerfile (Hadolint) -# uses: hadolint/hadolint-action@v3.1.0 -# with: -# dockerfile: Dockerfile -# -# - name: Security Lint Dockerfile (Trivy) -# run: | -# trivy config --exit-code 1 --severity CRITICAL,HIGH . -# -# - name: Log in to Gitea Container Registry -# uses: docker/login-action@v3 -# with: -# registry: git.br0tkasten.de -# username: ${{ secrets.PACKAGE_USER }} -# password: ${{ secrets.PACKAGE_TOKEN }} - - - name: Log in to Gitea Container Registry + - name: Log in to Container Registry uses: docker/login-action@v3 with: registry: registry.br0tkasten.de @@ -48,7 +25,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: git.br0tkasten.de/${{ gitea.repository }} + images: registry.br0tkasten.de/${{ gitea.repository }} flavor: | latest=true tags: | @@ -56,17 +33,6 @@ jobs: type=semver,pattern={{version}} type=sha - - name: Build Docker image locally - uses: docker/build-push-action@v5 - with: - context: . - load: true # This loads the image into the local docker daemon for Trivy to find - tags: local_scan_target:${{ github.sha }} - -# - name: Run Trivy scanner (Binary Mode) -# run: | -# trivy image --exit-code 1 --severity CRITICAL,HIGH --ignore-unfixed --server http://trivy-server:8080 local_scan_target:${{ github.sha }} - - name: Build and push Docker image uses: docker/build-push-action@v5 with: