File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -141,29 +141,24 @@ pipeline {
141
141
archiveArtifacts(artifacts : ' docs/docs.tgz' , allowEmptyArchive : false )
142
142
}
143
143
}
144
- /*
145
144
stage(' MultiArch Build' ) {
146
145
when {
147
- allOf {
148
- branch 'master'
149
- not {
150
- equals expected: 'UNSTABLE', actual: currentBuild.result
151
- }
146
+ not {
147
+ equals expected : ' UNSTABLE' , actual : currentBuild. result
152
148
}
153
149
}
154
150
steps {
155
151
withCredentials([string(credentialsId : ' npm-sentry-dsn' , variable : ' SENTRY_DSN' )]) {
156
152
withCredentials([usernamePassword(credentialsId : ' jc21-dockerhub' , passwordVariable : ' dpass' , usernameVariable : ' duser' )]) {
153
+ // Docker Login
157
154
sh " docker login -u '${ duser} ' -p '${ dpass} '"
158
- // Buildx to local files
159
- // sh './scripts/buildx -o type=local,dest=docker-build'
160
- // Buildx to with push
155
+ // Buildx with push from cache
161
156
sh " ./scripts/buildx --push ${ BUILDX_PUSH_TAGS} "
157
+ // sh './scripts/buildx -o type=local,dest=docker-build'
162
158
}
163
159
}
164
160
}
165
161
}
166
- */
167
162
stage(' Docs Deploy' ) {
168
163
when {
169
164
allOf {
Original file line number Diff line number Diff line change 1
- #! /bin/bash -e
1
+ #! /bin/bash
2
2
3
3
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4
4
. " $DIR /.common.sh"
5
5
6
6
echo -e " ${BLUE} ❯ ${CYAN} Building docker multiarch: ${YELLOW}${* }${RESET} "
7
7
8
- cd " ${DIR} /.."
8
+ cd " ${DIR} /.." || exit 1
9
9
10
10
# determine commit if not already set
11
11
if [ " $BUILD_COMMIT " == " " ]; then
@@ -31,6 +31,7 @@ docker buildx build \
31
31
$@ \
32
32
.
33
33
34
+ rc=$?
34
35
docker buildx rm " ${BUILDX_NAME:- npm} "
35
-
36
36
echo -e " ${BLUE} ❯ ${GREEN} Multiarch build Complete${RESET} "
37
+ exit $rc
You can’t perform that action at this time.
0 commit comments