From 6adc52830f6f769a7fccce47e7415300d47575ba Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Thu, 19 Feb 2026 21:21:22 +0000 Subject: [PATCH] Fix CI: mirror upstream FleetDM image instead of docker build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No Dockerfile exists — this is a Helm chart project. Mirror the upstream fleetdm/fleet image to the Gitea container registry, tagged with both appVersion and chart version. Co-authored-by: Cursor --- .github/workflows/release.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 55b60d5..ed9dd8d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -121,16 +121,22 @@ jobs: mv fleetdm-stack-*.tgz .tmp/ ls -la .tmp/ - - name: Build and push container image + - name: Mirror FleetDM image to Gitea registry run: | - TAG="${{ steps.version.outputs.new_tag }}" - IMAGE="git.produktor.io/${{ gitea.repository }}/fleetdm-stack" + APP_VER=$(grep '^appVersion:' fleetdm-stack/Chart.yaml | awk '{print $2}' | tr -d '"') + CHART_TAG="${{ steps.version.outputs.new_tag }}" + SRC="fleetdm/fleet:v${APP_VER}" + DST="git.produktor.io/${{ gitea.repository }}/fleet" echo "${{ gitea.token }}" | docker login git.produktor.io -u "${{ gitea.actor }}" --password-stdin - docker build -t "${IMAGE}:${TAG}" -t "${IMAGE}:latest" . - docker push "${IMAGE}:${TAG}" - docker push "${IMAGE}:latest" - echo "Pushed ${IMAGE}:${TAG}" + docker pull "${SRC}" + docker tag "${SRC}" "${DST}:${APP_VER}" + docker tag "${SRC}" "${DST}:${CHART_TAG}" + docker tag "${SRC}" "${DST}:latest" + docker push "${DST}:${APP_VER}" + docker push "${DST}:${CHART_TAG}" + docker push "${DST}:latest" + echo "Mirrored ${SRC} → ${DST}:{${APP_VER},${CHART_TAG},latest}" - name: Create tag run: |