fix ci
This commit is contained in:
parent
e167400531
commit
8bc1bd89a4
|
@ -53,13 +53,13 @@ jobs:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: https://gh.huoxue.store/docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: https://gh.huoxue.store/docker/setup-buildx-action@v2
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: https://gh.huoxue.store/docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: huoxue.link:12300/huoxue1/study_xxqg
|
images: huoxue.link:12300/huoxue1/study_xxqg
|
||||||
tags: |
|
tags: |
|
||||||
|
@ -67,14 +67,14 @@ jobs:
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v2
|
uses: https://gh.huoxue.store/docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: huoxue.link:12300
|
registry: huoxue.link:12300
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v3
|
uses: https://gh.huoxue.store/docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
@ -96,7 +96,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: setup go
|
- name: setup go
|
||||||
uses: https://github.com/actions/setup-go@v4
|
uses: https://gh.huoxue.store/actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Fetch all tags
|
- name: Fetch all tags
|
||||||
|
@ -109,7 +109,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
- name: upload-artifact
|
- name: upload-artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: https://gh.huoxue.store/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: study_xxqg
|
name: study_xxqg
|
||||||
path: dist/*/*
|
path: dist/*/*
|
||||||
|
|
Loading…
Reference in New Issue