File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ jobs:
3232 with :
3333 go-version : ' 1.21.x'
3434
35- - name : Prepare environment
35+ - name : Prepare environment
3636 run : |
3737 RELEASE_BUILD=false
3838 if [[ "${GITHUB_REF}" == refs/tags/* ]]; then RELEASE_BUILD=true; fi
39-
39+
4040 RC_BUILD=false
4141 if [[ "${GITHUB_REF}" == refs/tags/*-rc* ]]; then RC_BUILD=true; fi
4242
@@ -46,11 +46,11 @@ jobs:
4646 PR_BUILD=false
4747 if [[ "${SNAPSHOT_BUILD}" == "false" && "${RELEASE_BUILD}" == "false" ]]; then PR_BUILD=true; fi
4848
49- if [[ "${RELEASE_BUILD}" == "true" ]]; then
49+ if [[ "${RELEASE_BUILD}" == "true" ]]; then
5050 BUILD_VERSION="${GITHUB_REF#refs/tags/}";
5151 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
5454 BRANCH="${GITHUB_HEAD_REF////-}"
5555 if [[ "${BRANCH}" == "" ]]; then BRANCH="${GITHUB_REF_NAME}"; fi
5656 BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1branch-"${BRANCH}";
8181 go run mage.go -v MakeBucket
8282
8383 build-packages :
84- runs-on : ubuntu-latest
84+ runs-on : ubuntu-22.04
8585 needs : [setup-env]
8686
8787 strategy :
@@ -116,7 +116,7 @@ jobs:
116116 sudo apt-get update
117117 sudo apt-get install ruby-dev build-essential
118118 sudo gem i fpm -f
119-
119+
120120 - name : Build package
121121 run : |
122122 source env.sh
You can’t perform that action at this time.
0 commit comments