更新 .github/workflows/build-images.yaml
This commit is contained in:
@@ -76,4 +76,22 @@ jobs:
|
||||
--filter "reference=cc-*" \
|
||||
--filter "reference=*/cc-*" \
|
||||
--format "| \`{{.Repository}}:{{.Tag}}\` | {{.Size}} |" \
|
||||
>> $GITHUB_STEP_SUMMARY
|
||||
>> $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}
|
||||
Reference in New Issue
Block a user