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

This commit is contained in:
clxhzg
2025-12-01 18:31:02 +08:00
parent d7447b80ed
commit 120c30afc5

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:
# Gitea 使用gitea.registry registry: ${{ vars.REGISTRY_ADDR }} # 要上传的仓库地址: gitea.guetsec.cn
registry: ${{ gitea.registry }} username: ${{ secrets.REGISTRY_USERNAME }} # Gitea 用户名
username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} # Gitea 有package读写权限的访问令牌
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 "::set-output name=tags::${{ gitea.registry }}/${{ gitea.repository }}:${SHORT_SHA},${{ gitea.registry }}/${{ gitea.repository }}:latest" echo "tags=${{ vars.REGISTRY_ADDR }}/${{ gitea.repository }}:${SHORT_SHA}" >> $GITHUB_OUTPUT
echo "tags=${{ vars.REGISTRY_ADDR }}/${{ gitea.repository }}:latest" >> $GITHUB_OUTPUT
# 构建并推送 # 构建并推送
- name: Build and push - name: Build and push