Merge remote-tracking branch 'gitea/Main' into Main
docker build / build (push) Successful in 34s Details
CI / Build binary CI (push) Failing after 6m46s Details

# Conflicts:
#	.gitea/workflows/ci.yml
This commit is contained in:
huoxue1 2023-09-07 10:13:18 +08:00
commit 465578a5d5
1 changed files with 17 additions and 13 deletions

View File

@ -31,16 +31,6 @@ jobs:
uses: https://github.com/actions/setup-go@v4
with:
go-version: '1.20'
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
- 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: Fetch all tags
run: git fetch --force --tags
- name: Run GoReleaser
@ -50,12 +40,25 @@ jobs:
args: build --rm-dist ${{ steps.snapshot.outputs.ARG }} --timeout 2h30m
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
-
name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
-
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: huoxue1/qinglong-go
images: huoxue.link:12300/huoxue1/qinglong-go
tags: |
type=raw,value=latest
type=ref,event=tag
@ -64,8 +67,9 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: huoxue.link:12300
username: huoxue1
password: 1743224847gou
-
name: Build and push
id: docker_build