File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 12
12
image : ubuntu-2204:2023.04.2
13
13
environment :
14
14
DEPLOY_PACKAGES : 1
15
- DEB : focal
15
+ DEB : focal jammy
16
16
RPM : el8 el9
17
17
ST2_VERSION : " 3.9dev"
18
18
ST2_HOST : localhost
44
44
- run :
45
45
name : Export package version
46
46
command : |
47
+ export DISTROS=( $DEB $RPM )
47
48
PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
48
49
if [ -n "$PACKAGECLOUD_TOKEN" ]; then
49
- PKG_RELEASE=$(packagecloud.sh next-revision bionic ${PKG_VERSION} st2web)
50
+ PKG_RELEASE=$(packagecloud.sh next-revision ${DISTROS[0]} ${PKG_VERSION} st2web)
50
51
else
51
52
# is fork
52
53
PKG_RELEASE=1
@@ -131,29 +132,35 @@ jobs:
131
132
command : |
132
133
nvm use 20.8.1
133
134
make deb
134
- echo $DEB | tr ' ' '\n' | xargs -I{} cp -vr ../st2web_*.{deb,changes} ~/artifacts/{}
135
+ for i in $DEB
136
+ do
137
+ cp -vr ../st2web_*.{deb,changes} ~/artifacts/"${i}"
138
+ done
135
139
- run :
136
140
name : Make RPM packages
137
141
command : |
138
142
nvm use 20.8.1
139
143
make rpm
140
- echo $RPM | tr ' ' '\n' | xargs -I{} cp -vr ../st2web-*.rpm ~/artifacts/{}
144
+ for i in $RPM
145
+ do
146
+ cp -vr ../st2web-*.rpm ~/artifacts/"${i}"
147
+ done
141
148
- store_artifacts :
142
149
path : ~/artifacts
143
150
destination : packages
144
151
- persist_to_workspace :
145
152
root : /home/circleci/artifacts
146
153
paths :
147
- - bionic
148
154
- focal
149
- - el7
155
+ - jammy
150
156
- el8
157
+ - el9
151
158
deploy :
152
159
docker :
153
160
- image : ruby:2.7
154
161
environment :
155
162
ARTIFACTS : /home/circleci/artifacts
156
- DISTROS : focal el8 el9
163
+ DISTROS : focal jammy el8 el9
157
164
steps :
158
165
- checkout
159
166
- attach_workspace :
You can’t perform that action at this time.
0 commit comments