Fix CI: lowercase OCI reference and use REPO_TOKEN secret
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:
Vendored
+3
-2
@@ -130,9 +130,10 @@ jobs:
|
||||
APP_VER=$(grep '^appVersion:' fleetdm-stack/Chart.yaml | awk '{print $2}' | tr -d '"')
|
||||
CHART_TAG="${{ steps.version.outputs.new_tag }}"
|
||||
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 tag "${DST}:${APP_VER}" "${CHART_TAG}"
|
||||
crane tag "${DST}:${APP_VER}" "latest"
|
||||
|
||||
Reference in New Issue
Block a user