Fix CI: lowercase OCI reference and use REPO_TOKEN secret
Helm Chart CI & Release / Lint Helm Chart (push) Successful in 8s
Helm Chart CI & Release / Semantic Release (push) Successful in 2m12s

OCI spec requires lowercase repository names; eSlider was
causing crane to reject the reference. Use secrets.REPO_TOKEN
for registry authentication.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-19 21:25:43 +00:00
parent 87ce0ec6ee
commit 55d7345854
+3 -2
View File
@@ -130,9 +130,10 @@ jobs:
APP_VER=$(grep '^appVersion:' fleetdm-stack/Chart.yaml | awk '{print $2}' | tr -d '"') APP_VER=$(grep '^appVersion:' fleetdm-stack/Chart.yaml | awk '{print $2}' | tr -d '"')
CHART_TAG="${{ steps.version.outputs.new_tag }}" CHART_TAG="${{ steps.version.outputs.new_tag }}"
SRC="docker.io/fleetdm/fleet:v${APP_VER}" SRC="docker.io/fleetdm/fleet:v${APP_VER}"
DST="git.produktor.io/${{ gitea.repository_owner }}/fleet" OWNER=$(echo "${{ gitea.repository_owner }}" | tr '[:upper:]' '[:lower:]')
DST="git.produktor.io/${OWNER}/fleet"
crane auth login git.produktor.io -u "${{ gitea.actor }}" -p "${{ gitea.token }}" crane auth login git.produktor.io -u "${{ gitea.actor }}" -p "${{ secrets.REPO_TOKEN }}"
crane copy "${SRC}" "${DST}:${APP_VER}" crane copy "${SRC}" "${DST}:${APP_VER}"
crane tag "${DST}:${APP_VER}" "${CHART_TAG}" crane tag "${DST}:${APP_VER}" "${CHART_TAG}"
crane tag "${DST}:${APP_VER}" "latest" crane tag "${DST}:${APP_VER}" "latest"