修改ci
This commit is contained in:
parent
7cfba6abcc
commit
206fc8893a
|
@ -1,9 +1,6 @@
|
||||||
name: docker build
|
name: docker build
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BINARY_PREFIX: "study_xxqg_"
|
BINARY_PREFIX: "study_xxqg_"
|
||||||
|
@ -22,7 +19,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}
|
run: |
|
||||||
|
echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
|
||||||
|
echo ${GITHUB_REF:10}
|
||||||
- name: Build binary file
|
- name: Build binary file
|
||||||
run: |
|
run: |
|
||||||
export LD_FLAGS="-w -s -X main.VERSION=${COMMIT_ID::7}"
|
export LD_FLAGS="-w -s -X main.VERSION=${COMMIT_ID::7}"
|
||||||
|
|
Loading…
Reference in New Issue