mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
change workflow config
This commit is contained in:
parent
413ca1dcac
commit
8538d6ed0c
37
.github/workflows/release-ci-build.yml
vendored
37
.github/workflows/release-ci-build.yml
vendored
@ -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/setup-go@v2.1.3
|
||||
with:
|
||||
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
|
||||
go-version: 1.13
|
||||
# - name: Go-linter
|
||||
# uses: Jerome1337/golint-action@v1.0.2
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Go environment
|
||||
uses: actions/setup-go@v2.1.3
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user