更新 .gitea/workflows/build.yaml
Some checks failed
Build and Push Docker Image / build (push) Failing after 3s
Some checks failed
Build and Push Docker Image / build (push) Failing after 3s
This commit is contained in:
@@ -20,9 +20,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# 登入內建 Registry (變數會自動填入)
|
# 登入內建 Registry (變數會自動填入)
|
||||||
# 使用 Gitea 的固定 IP (已经在 DinD 中配置为 insecure)
|
# 使用 Gitea 的固定 IP (已经在 DinD 中配置为 insecure)
|
||||||
# Gitea Actions 使用不同的变量名
|
# 使用 Gitea 自动提供的 token
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login 172.24.0.10:3000 -u "${{ github.actor }}" --password-stdin
|
echo "${{ secrets.ACTIONS_RUNTIME_TOKEN }}" | docker login 172.24.0.10:3000 -u gitea_actions --password-stdin
|
||||||
|
|
||||||
IMAGE_NAME="172.24.0.10:3000/${{ gitea.repository }}:latest"
|
IMAGE_NAME="172.24.0.10:3000/${{ gitea.repository }}:latest"
|
||||||
docker build -t $IMAGE_NAME .
|
docker build -t $IMAGE_NAME .
|
||||||
docker push $IMAGE_NAME
|
docker push $IMAGE_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user