-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
barnettZQG
committed
Feb 21, 2021
1 parent
413ca1d
commit 4becc73
Showing
2 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,25 @@ name: release-ci-build | |
|
||
on: | ||
release: | ||
branches: [ master, V5.3 ] | ||
branches: [master, V5.3] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
# The Go version to download (if necessary) and use. Supports semver spec and ranges. | ||
go-version: 1.13 | ||
# - name: Go-linter | ||
# uses: Jerome1337/[email protected] | ||
- uses: actions/checkout@v2 | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
# The Go version to download (if necessary) and use. Supports semver spec and ranges. | ||
go-version: 1.13 | ||
|
||
- name: get tag | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF:10} | ||
|
||
- name: Build the Docker image | ||
env: | ||
DISABLE_GOPROXY: true | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }} | ||
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }} | ||
run: VERSION=${{ steps.vars.outputs.tag }} ./release.sh all push | ||
- name: Build the Docker image | ||
env: | ||
DISABLE_GOPROXY: true | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }} | ||
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }} | ||
run: VERSION=v5.3.0-release ./release.sh all push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#! /bin/bash | ||
|
||
export VERSION=v5.3.0-pre-release | ||
export VERSION=v5.3.0-release | ||
export BUILD_IMAGE_BASE_NAME=registry.cn-hangzhou.aliyuncs.com/goodrain | ||
./release.sh all push |