From f848464b20e5d47443881703d938b49c39908f77 Mon Sep 17 00:00:00 2001 From: EricXZ Date: Mon, 13 Jul 2026 00:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build-im?= =?UTF-8?q?ages.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-images.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index bc4cb48..23736e3 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -76,4 +76,22 @@ jobs: --filter "reference=cc-*" \ --filter "reference=*/cc-*" \ --format "| \`{{.Repository}}:{{.Tag}}\` | {{.Size}} |" \ - >> $GITHUB_STEP_SUMMARY \ No newline at end of file + >> $GITHUB_STEP_SUMMARY + + # ── Stage 5: push to Gitea container registry ────────────────── + - name: Log in to Gitea Container Registry + env: + GITEA_TOKEN: ${{ secrets.ERIC_TOKEN }} + run: | + echo "${GITEA_TOKEN}" | docker login gitea:3000 -u EricXZ --password-stdin + + - name: Tag image for registry + run: | + docker tag rk3576/cc-ros-lyrical:latest gitea:3000/xixing-tech/cc-ros-lyrical:${PLATFORM}-${ROS_DISTRO}-latest + # 建议同时打一个带 commit sha 的版本tag,方便追溯具体是哪次构建产物 + docker tag rk3576/cc-ros-lyrical:latest gitea:3000/xixing-tech/cc-ros-lyrical:${PLATFORM}-${ROS_DISTRO}-${GITHUB_SHA::8} + + - name: Push image to Gitea registry + run: | + docker push gitea:3000/xixing-tech/cc-ros-lyrical:${PLATFORM}-${ROS_DISTRO}-latest + docker push gitea:3000/xixing-tech/cc-ros-lyrical:${PLATFORM}-${ROS_DISTRO}-${GITHUB_SHA::8} \ No newline at end of file