From e9fcc8bd0bd563a669514ba96e29fbd2cedb823f Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 17:44:02 -0400 Subject: [PATCH 1/9] init forgejo workflow --- .forgejo/workflows/build.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..7d75a74 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,37 @@ +name: Build And Publish Container + +on: + workflow_dispatch: + + +jobs: + build-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + submodules: 'recursive' + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 + with: + endpoint: tcp://socket-proxy:2375 + platforms: linux/amd64 + + - name: Login to Self-Hosted Registry + uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 + with: + registry: fung.uy + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + - name: Build and Push Extended Version + uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + with: + builder: ${{ steps.buildx.outputs.name }} + context: ./ + file: ./Dockerfile + platforms: linux/amd64 + push: true + tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly -- 2.54.0 From b3e3dd1a820c406aada466e3c6864a816f8cec98 Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 17:51:49 -0400 Subject: [PATCH 2/9] fetch tags --- .forgejo/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 7d75a74..86d68fd 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -11,6 +11,7 @@ jobs: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: submodules: 'recursive' + fetch-depth: 0 - name: Set up Docker Buildx id: buildx -- 2.54.0 From aff1389e38bd06d7cf5d5b32f41d0233f7960555 Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 17:59:36 -0400 Subject: [PATCH 3/9] build on push --- .forgejo/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 86d68fd..c1cd7c4 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -2,7 +2,9 @@ name: Build And Publish Container on: workflow_dispatch: - + push: + branches: + - '*' jobs: build-latest: -- 2.54.0 From dbd20fd75a7fcb88cd2524f0a616564a7003c0b7 Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 18:03:37 -0400 Subject: [PATCH 4/9] forgor it's gitea not forgejo --- {.forgejo => .gitea}/workflows/build.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {.forgejo => .gitea}/workflows/build.yaml (100%) diff --git a/.forgejo/workflows/build.yaml b/.gitea/workflows/build.yaml similarity index 100% rename from .forgejo/workflows/build.yaml rename to .gitea/workflows/build.yaml -- 2.54.0 From 77a917c0dd44c176b5d1fb6eee2b60d527b3ef8e Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 18:32:43 -0400 Subject: [PATCH 5/9] remove non relevant socket proxy entry --- .gitea/workflows/build.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c1cd7c4..8b5349e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -19,7 +19,6 @@ jobs: id: buildx uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 with: - endpoint: tcp://socket-proxy:2375 platforms: linux/amd64 - name: Login to Self-Hosted Registry -- 2.54.0 From 99a62a20ead22de710d4e1d6bd723432ae31e5dd Mon Sep 17 00:00:00 2001 From: Brooke Date: Fri, 17 Jul 2026 18:33:29 -0400 Subject: [PATCH 6/9] change auth url --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 8b5349e..29e66c6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,7 +24,7 @@ jobs: - name: Login to Self-Hosted Registry uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 with: - registry: fung.uy + registry: git.coopcloud.tech username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} -- 2.54.0 From 61e54b958f9efd98b54c6c853ef0d88666ca1635 Mon Sep 17 00:00:00 2001 From: Brooke Date: Sun, 26 Jul 2026 15:10:47 -0400 Subject: [PATCH 7/9] init manual build file, currently just a copy, testing short SHA for image names --- .gitea/workflows/build.yaml | 9 ++++++-- .gitea/workflows/manual-build.yaml | 37 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/manual-build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 29e66c6..000be90 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,7 +1,6 @@ name: Build And Publish Container on: - workflow_dispatch: push: branches: - '*' @@ -15,6 +14,12 @@ jobs: submodules: 'recursive' fetch-depth: 0 + - name: Get short commit SHA + id: vars + run: | + calculatedSha=$(git rev-parse --short ${{ github.sha }}) + echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV + - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 @@ -36,4 +41,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64 push: true - tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly + tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly-${{ env.COMMIT_SHORT_SHA }} diff --git a/.gitea/workflows/manual-build.yaml b/.gitea/workflows/manual-build.yaml new file mode 100644 index 0000000..184e3ac --- /dev/null +++ b/.gitea/workflows/manual-build.yaml @@ -0,0 +1,37 @@ +name: Build And Publish Container + +on: + workflow_dispatch: + + +jobs: + build-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + submodules: 'recursive' + fetch-depth: 0 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 + with: + platforms: linux/amd64 + + - name: Login to Self-Hosted Registry + uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0 + with: + registry: git.coopcloud.tech + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + - name: Build and Push Extended Version + uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + with: + builder: ${{ steps.buildx.outputs.name }} + context: ./ + file: ./Dockerfile + platforms: linux/amd64 + push: true + tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly -- 2.54.0 From 2034e70229ec359691a8f26dc11d449da4f3d1f8 Mon Sep 17 00:00:00 2001 From: Brooke Date: Sun, 26 Jul 2026 15:11:59 -0400 Subject: [PATCH 8/9] remove accidental carry over in build name from previous script. --- .gitea/workflows/build.yaml | 2 +- .gitea/workflows/manual-build.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 000be90..7dbf9d4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -33,7 +33,7 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - - name: Build and Push Extended Version + - name: Build and Push uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 with: builder: ${{ steps.buildx.outputs.name }} diff --git a/.gitea/workflows/manual-build.yaml b/.gitea/workflows/manual-build.yaml index 184e3ac..eaecf86 100644 --- a/.gitea/workflows/manual-build.yaml +++ b/.gitea/workflows/manual-build.yaml @@ -26,7 +26,7 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - - name: Build and Push Extended Version + - name: Build and Push uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 with: builder: ${{ steps.buildx.outputs.name }} -- 2.54.0 From 6782b150bd10e463f5d1deb5b276f7937c60c85a Mon Sep 17 00:00:00 2001 From: Brooke Date: Sun, 26 Jul 2026 15:33:42 -0400 Subject: [PATCH 9/9] remove manual build, merge into singular tag-build yaml file. --- .../{manual-build.yaml => tag-build.yaml} | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) rename .gitea/workflows/{manual-build.yaml => tag-build.yaml} (66%) diff --git a/.gitea/workflows/manual-build.yaml b/.gitea/workflows/tag-build.yaml similarity index 66% rename from .gitea/workflows/manual-build.yaml rename to .gitea/workflows/tag-build.yaml index eaecf86..46d2237 100644 --- a/.gitea/workflows/manual-build.yaml +++ b/.gitea/workflows/tag-build.yaml @@ -1,8 +1,14 @@ name: Build And Publish Container on: + push: + tags: + - "[0-9]*.[0-9]*.[0-9]*" workflow_dispatch: - + inputs: + tag: + description: "Version tag (e.g., 0.1.0)" + required: true jobs: build-latest: @@ -13,6 +19,16 @@ jobs: submodules: 'recursive' fetch-depth: 0 + - name: Get release tag + id: vars + run: | + if [ "${{ gitea.event_name }}" = "workflow_dispatch" ]; then + TAG="${{ gitea.inputs.version }}" + else + TAG="${{ gitea.ref_name }}" + fi + echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV + - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 @@ -34,4 +50,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64 push: true - tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly + tags: git.coopcloud.tech/toolshed/coop-cloud-webui:${{ env.RELEASE_TAG }} -- 2.54.0