Merge remote-tracking branch 'gitea/Main' into Main
# Conflicts: # .gitea/workflows/ci.yml
This commit is contained in:
commit
465578a5d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue