更新 .gitea/workflows/ci.yml
docker build / build (push) Has been cancelled Details
CI / Build binary CI (push) Failing after 1h41m19s Details

Signed-off-by: huoxue1 <3343780376@qq.com>
This commit is contained in:
huoxue1 2023-09-06 23:25:36 +08:00
parent c2a2acda4c
commit c04dd33481
1 changed files with 42 additions and 5 deletions

View File

@ -40,10 +40,47 @@ jobs:
args: build --snapshot args: build --snapshot
env: env:
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
# - name: upload-artifact -
# uses: actions/upload-artifact@v3 name: Set up QEMU
# with: id: qemu
# name: my-artifact uses: docker/setup-qemu-action@v2
# path: dist/*/* -
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Check snapshot
if: "!startsWith(github.ref, 'refs/tags/')"
id: snapshot
run: echo '::set-output name=ARG::--snapshot'
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: huoxue.link:12300/huoxue1/qinglong-go
tags: |
type=raw,value=latest
type=ref,event=tag
-
name: Docker Login
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: huoxue.link:12300
username: huoxue1
password: 1743224847gou
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
ulimit: core=0:0