mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
Merge pull request #475 from fudiwei/next
Reconfigure Github Actions for Docker Image CI
This commit is contained in:
commit
a68feda29c
11
.github/workflows/push_image.yml
vendored
11
.github/workflows/push_image.yml
vendored
@ -1,15 +1,17 @@
|
|||||||
name: Docker Image CI
|
name: Docker Image CI (stable versions)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*-beta"
|
- "v[0-9]*"
|
||||||
|
- "!v*alpha*"
|
||||||
|
- "!v*beta*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Tag version to be used for Docker image"
|
description: "Tag version to be used for Docker image"
|
||||||
required: true
|
required: true
|
||||||
default: "v0.1.9"
|
default: "latest"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@ -35,14 +37,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Log in to DOCKERHUB
|
- name: Log in to DOCKERHUB
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
- name: Log in to ALIYUNCS
|
- name: Log in to ALIYUNCS
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
||||||
with:
|
with:
|
||||||
registry: registry.cn-shanghai.aliyuncs.com
|
registry: registry.cn-shanghai.aliyuncs.com
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
@ -56,4 +56,3 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
|
10
.github/workflows/push_image_next.yml
vendored
10
.github/workflows/push_image_next.yml
vendored
@ -1,15 +1,16 @@
|
|||||||
name: Next Docker Image CI
|
name: Docker Image CI (preview versions)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*-alpha*"
|
- "v[0-9]*-alpha*"
|
||||||
|
- "v[0-9]*-beta*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Tag version to be used for Docker image"
|
description: "Tag version to be used for Docker image"
|
||||||
required: true
|
required: true
|
||||||
default: "v0.1.9"
|
default: "next"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@ -39,14 +40,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Log in to DOCKERHUB
|
- name: Log in to DOCKERHUB
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
- name: Log in to ALIYUNCS
|
- name: Log in to ALIYUNCS
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
||||||
with:
|
with:
|
||||||
registry: registry.cn-shanghai.aliyuncs.com
|
registry: registry.cn-shanghai.aliyuncs.com
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
@ -60,4 +59,3 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: basebuild
|
name: Base Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
- "v[0-9]*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
@ -22,9 +22,9 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ">=1.22.5"
|
go-version: ">=1.23.0"
|
||||||
|
|
||||||
- name: Build Admin dashboard UI
|
- name: Build WebUI
|
||||||
run: npm --prefix=./ui ci && npm --prefix=./ui run build
|
run: npm --prefix=./ui ci && npm --prefix=./ui run build
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user