File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ jobs:
32
32
with :
33
33
go-version : ' 1.21.x'
34
34
35
- - name : Prepare environment
35
+ - name : Prepare environment
36
36
run : |
37
37
RELEASE_BUILD=false
38
38
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then RELEASE_BUILD=true; fi
39
-
39
+
40
40
RC_BUILD=false
41
41
if [[ "${GITHUB_REF}" == refs/tags/*-rc* ]]; then RC_BUILD=true; fi
42
42
@@ -46,11 +46,11 @@ jobs:
46
46
PR_BUILD=false
47
47
if [[ "${SNAPSHOT_BUILD}" == "false" && "${RELEASE_BUILD}" == "false" ]]; then PR_BUILD=true; fi
48
48
49
- if [[ "${RELEASE_BUILD}" == "true" ]]; then
49
+ if [[ "${RELEASE_BUILD}" == "true" ]]; then
50
50
BUILD_VERSION="${GITHUB_REF#refs/tags/}";
51
51
elif [[ "${SNAPSHOT_BUILD}" == "true" ]]; then
52
- BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1snapshot-"$(date '+%Y%m%dT%H%M')"-"$(echo ${GITHUB_SHA} | cut -c1-8)";
53
- elif [[ "${PR_BUILD}" == "true" ]]; then
52
+ BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1snapshot-"$(date '+%Y%m%dT%H%M')"-"$(echo ${GITHUB_SHA} | cut -c1-8)";
53
+ elif [[ "${PR_BUILD}" == "true" ]]; then
54
54
BRANCH="${GITHUB_HEAD_REF////-}"
55
55
if [[ "${BRANCH}" == "" ]]; then BRANCH="${GITHUB_REF_NAME}"; fi
56
56
BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1branch-"${BRANCH}";
81
81
go run mage.go -v MakeBucket
82
82
83
83
build-packages :
84
- runs-on : ubuntu-latest
84
+ runs-on : ubuntu-22.04
85
85
needs : [setup-env]
86
86
87
87
strategy :
@@ -116,7 +116,7 @@ jobs:
116
116
sudo apt-get update
117
117
sudo apt-get install ruby-dev build-essential
118
118
sudo gem i fpm -f
119
-
119
+
120
120
- name : Build package
121
121
run : |
122
122
source env.sh
You can’t perform that action at this time.
0 commit comments