From b41e333db9ab2eaff2f80345dc00802795f7b4fc Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 29 Apr 2026 21:26:07 +0200 Subject: [PATCH 1/5] chore: slim build.yml to use shared docker-build action --- .gitea/workflows/build.yml | 40 +++++--------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b2b411e..1907701 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build and publish +name: build on: push: @@ -7,17 +7,6 @@ on: pull_request: branches: [main] -# Required secrets: -# REGISTRY git.librete.ch -# REGISTRY_USER libretech-bot -# REGISTRY_PASS bot PAT (write:package; bot is in libreshop Owners team) -# Required variable: -# PUBLISH_ENABLED "true" to actually push (off = build-only on PRs) -# -# Image: git.librete.ch/libreshop/cms -# main pushes → :main + :sha- -# tag pushes → : + :latest - jobs: build: runs-on: ubuntu-latest @@ -27,29 +16,10 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: docker/setup-buildx-action@v3 - - - name: Login (only when publishing) - if: ${{ vars.PUBLISH_ENABLED == 'true' }} - uses: docker/login-action@v3 + - uses: libreshop/actions/.gitea/actions/docker-build@main with: registry: ${{ secrets.REGISTRY }} - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} + registry_user: ${{ secrets.REGISTRY_USER }} + registry_pass: ${{ secrets.REGISTRY_PASS }} + publish: ${{ github.event_name == 'push' && vars.PUBLISH_ENABLED == 'true' }} - - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ secrets.REGISTRY }}/libreshop/cms - tags: | - type=ref,event=branch - type=ref,event=tag - type=sha,format=short - type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} - - - uses: docker/build-push-action@v6 - with: - context: . - push: ${{ vars.PUBLISH_ENABLED == 'true' && github.event_name == 'push' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} -- 2.36.6 From dfd45cd0a85c2b2dbe559fd67df01661f0cf1c2c Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 29 Apr 2026 21:27:54 +0200 Subject: [PATCH 2/5] chore: slim build.yml to use shared docker-build action --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1907701..b961933 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: libreshop/actions/.gitea/actions/docker-build@main + - uses: libretech/actions/.gitea/actions/docker-build@main with: registry: ${{ secrets.REGISTRY }} registry_user: ${{ secrets.REGISTRY_USER }} -- 2.36.6 From 24e95c6320633c6079c1e587995004692e27e25e Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 29 Apr 2026 21:46:19 +0200 Subject: [PATCH 3/5] fix: use full Gitea URL for cross-repo composite action --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b961933..7e21086 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: libretech/actions/.gitea/actions/docker-build@main + - uses: git.librete.ch/libretech/actions/.gitea/actions/docker-build@main with: registry: ${{ secrets.REGISTRY }} registry_user: ${{ secrets.REGISTRY_USER }} -- 2.36.6 From 2c48896485016ae781f813d60454539c31c68af9 Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 29 Apr 2026 21:52:05 +0200 Subject: [PATCH 5/5] fix: use https:// prefix for Gitea composite action ref --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7e21086..8621b2b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: git.librete.ch/libretech/actions/.gitea/actions/docker-build@main + - uses: https://git.librete.ch/libretech/actions/.gitea/actions/docker-build@main with: registry: ${{ secrets.REGISTRY }} registry_user: ${{ secrets.REGISTRY_USER }} -- 2.36.6