commit
Some checks failed
Build to Gitea Registry / build-push (push) Has been cancelled

This commit is contained in:
clxhzg
2025-12-01 18:30:06 +08:00
parent 708476636e
commit d7447b80ed

View File

@@ -13,17 +13,17 @@ jobs:
- name: Login to Gitea Registry - name: Login to Gitea Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ vars.REGISTRY_ADDR }} # 要上传的仓库地址: gitea.guetsec.cn # Gitea 使用gitea.registry
username: ${{ secrets.REGISTRY_USERNAME }} # Gitea 用户名 registry: ${{ gitea.registry }}
password: ${{ secrets.REGISTRY_TOKEN }} # Gitea 有package读写权限的访问令牌 username: ${{ gitea.actor }}
password: ${{ secrets.GITEA_TOKEN }}
# 设置动态标签 # 设置动态标签Gitea 语法)
- name: Set image tags - name: Set image tags
id: tags id: tags
run: | run: |
SHORT_SHA=$(echo ${GITEA_SHA} | cut -c1-8) SHORT_SHA=$(echo ${GITEA_SHA} | cut -c1-8)
echo "tags=${{ vars.REGISTRY_ADDR }}/${{ gitea.repository }}:${SHORT_SHA}" >> $GITHUB_OUTPUT echo "::set-output name=tags::${{ gitea.registry }}/${{ gitea.repository }}:${SHORT_SHA},${{ gitea.registry }}/${{ gitea.repository }}:latest"
echo "tags=${{ vars.REGISTRY_ADDR }}/${{ gitea.repository }}:latest" >> $GITHUB_OUTPUT
# 构建并推送 # 构建并推送
- name: Build and push - name: Build and push