更新 .gitea/workflows/ci.yml
docker build / build (push) Failing after 2m6s Details
CI / Build binary CI (push) Failing after 34m29s Details

This commit is contained in:
huoxue1 2023-09-08 17:52:24 +08:00
parent 06ebf13db2
commit 5bbe6c3bcd
1 changed files with 10 additions and 6 deletions

View File

@ -8,7 +8,6 @@ env:
COMMIT_ID: "${{ github.sha }}" COMMIT_ID: "${{ github.sha }}"
PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request." PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request."
LD_FLAGS: "-w -s" LD_FLAGS: "-w -s"
VERSION: "action"
HTTP_PROXY: "http://172.17.0.1:7890" HTTP_PROXY: "http://172.17.0.1:7890"
HTTPS_PROXY: "http://172.17.0.1:7890" HTTPS_PROXY: "http://172.17.0.1:7890"
GOPROXY: "https://goproxy.cn,direct" GOPROXY: "https://goproxy.cn,direct"
@ -21,6 +20,10 @@ jobs:
image: node:16-bullseye image: node:16-bullseye
# 持久化工具目录 # 持久化工具目录
steps: steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup go - name: setup go
uses: https://github.com/actions/setup-go@v4 uses: https://github.com/actions/setup-go@v4
with: with:
@ -34,10 +37,11 @@ jobs:
args: build --snapshot args: build --snapshot
env: env:
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
# - name: upload-artifact # - name: upload-artifact
# uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
# with: # with:
# name: my-artifact # name: my-artifact
# path: dist/*/* # path: dist/*/*