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