Skip to content

Commit

Permalink
change release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettZQG committed Feb 21, 2021
1 parent 413ca1d commit 4becc73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/release-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion local_release.sh
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

0 comments on commit 4becc73

Please sign in to comment.