@@ -43,7 +43,7 @@ pipeline {
43
43
steps {
44
44
script {
45
45
// Defaults to the Branch name, which is applies to all branches AND pr's
46
- buildxPushTags = " -t docker.io/jc21 /${ IMAGE} :github- ${ BRANCH_LOWER} "
46
+ buildxPushTags = " -t docker.io/nginxproxymanager /${ IMAGE} -dev: ${ BRANCH_LOWER} "
47
47
}
48
48
}
49
49
}
@@ -167,6 +167,44 @@ pipeline {
167
167
}
168
168
}
169
169
}
170
+ stage(' Test Postgres' ) {
171
+ environment {
172
+ COMPOSE_PROJECT_NAME = " npm_${ BRANCH_LOWER} _${ BUILD_NUMBER} _postgres"
173
+ COMPOSE_FILE = ' docker/docker-compose.ci.yml:docker/docker-compose.ci.postgres.yml'
174
+ }
175
+ when {
176
+ not {
177
+ equals expected : ' UNSTABLE' , actual : currentBuild. result
178
+ }
179
+ }
180
+ steps {
181
+ sh ' rm -rf ./test/results/junit/*'
182
+ sh ' ./scripts/ci/fulltest-cypress'
183
+ }
184
+ post {
185
+ always {
186
+ // Dumps to analyze later
187
+ sh ' mkdir -p debug/postgres'
188
+ sh ' docker logs $(docker-compose ps --all -q fullstack) > debug/postgres/docker_fullstack.log 2>&1'
189
+ sh ' docker logs $(docker-compose ps --all -q stepca) > debug/postgres/docker_stepca.log 2>&1'
190
+ sh ' docker logs $(docker-compose ps --all -q pdns) > debug/postgres/docker_pdns.log 2>&1'
191
+ sh ' docker logs $(docker-compose ps --all -q pdns-db) > debug/postgres/docker_pdns-db.log 2>&1'
192
+ sh ' docker logs $(docker-compose ps --all -q dnsrouter) > debug/postgres/docker_dnsrouter.log 2>&1'
193
+ sh ' docker logs $(docker-compose ps --all -q db-postgres) > debug/postgres/docker_db-postgres.log 2>&1'
194
+ sh ' docker logs $(docker-compose ps --all -q authentik) > debug/postgres/docker_authentik.log 2>&1'
195
+ sh ' docker logs $(docker-compose ps --all -q authentik-redis) > debug/postgres/docker_authentik-redis.log 2>&1'
196
+ sh ' docker logs $(docker-compose ps --all -q authentik-ldap) > debug/postgres/docker_authentik-ldap.log 2>&1'
197
+
198
+ junit ' test/results/junit/*'
199
+ sh ' docker-compose down --remove-orphans --volumes -t 30 || true'
200
+ }
201
+ unstable {
202
+ dir(path : ' testing/results' ) {
203
+ archiveArtifacts(allowEmptyArchive : true , artifacts : ' **/*' , excludes : ' **/*.xml' )
204
+ }
205
+ }
206
+ }
207
+ }
170
208
stage(' MultiArch Build' ) {
171
209
when {
172
210
not {
@@ -203,7 +241,13 @@ pipeline {
203
241
}
204
242
steps {
205
243
script {
206
- npmGithubPrComment(" Docker Image for build ${ BUILD_NUMBER} is available on [DockerHub](https://cloud.docker.com/repository/docker/jc21/${ IMAGE} ) as `jc21/${ IMAGE} :github-${ BRANCH_LOWER} `\n\n **Note:** ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes." , true )
244
+ npmGithubPrComment(""" Docker Image for build ${ BUILD_NUMBER} is available on
245
+ [DockerHub](https://cloud.docker.com/repository/docker/nginxproxymanager/${ IMAGE} -dev)
246
+ as `nginxproxymanager/${ IMAGE} -dev:${ BRANCH_LOWER} `
247
+
248
+ **Note:** ensure you backup your NPM instance before testing this image! Especially if there are database changes
249
+ **Note:** this is a different docker image namespace than the official image
250
+ """ , true )
207
251
}
208
252
}
209
253
}
0 commit comments