Skip to content

Commit a103387

Browse files
committed
Merge branch 'develop' of https://github.com/NginxProxyManager/nginx-proxy-manager into develop
2 parents 0b7ff13 + b3de76c commit a103387

File tree

193 files changed

+8010
-5300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+8010
-5300
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.11.3
1+
2.12.1

Jenkinsfile

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pipeline {
4343
steps {
4444
script {
4545
// 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}"
4747
}
4848
}
4949
}
@@ -56,6 +56,13 @@ pipeline {
5656
sh 'sed -i -E "s/(version-)[0-9]+\\.[0-9]+\\.[0-9]+(-green)/\\1${BUILD_VERSION}\\2/" README.md'
5757
}
5858
}
59+
stage('Docker Login') {
60+
steps {
61+
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
62+
sh 'docker login -u "${duser}" -p "${dpass}"'
63+
}
64+
}
65+
}
5966
}
6067
}
6168
stage('Builds') {
@@ -120,6 +127,11 @@ pipeline {
120127
junit 'test/results/junit/*'
121128
sh 'docker-compose down --remove-orphans --volumes -t 30 || true'
122129
}
130+
unstable {
131+
dir(path: 'testing/results') {
132+
archiveArtifacts(allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml')
133+
}
134+
}
123135
}
124136
}
125137
stage('Test Mysql') {
@@ -148,6 +160,11 @@ pipeline {
148160
junit 'test/results/junit/*'
149161
sh 'docker-compose down --remove-orphans --volumes -t 30 || true'
150162
}
163+
unstable {
164+
dir(path: 'testing/results') {
165+
archiveArtifacts(allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml')
166+
}
167+
}
151168
}
152169
}
153170
stage('MultiArch Build') {
@@ -157,10 +174,7 @@ pipeline {
157174
}
158175
}
159176
steps {
160-
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
161-
sh 'docker login -u "${duser}" -p "${dpass}"'
162-
sh "./scripts/buildx --push ${buildxPushTags}"
163-
}
177+
sh "./scripts/buildx --push ${buildxPushTags}"
164178
}
165179
}
166180
stage('Docs / Comment') {
@@ -189,7 +203,13 @@ pipeline {
189203
}
190204
steps {
191205
script {
192-
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)
206+
npmGithubPrComment("""Docker Image for build ${BUILD_NUMBER} is available on
207+
[DockerHub](https://cloud.docker.com/repository/docker/nginxproxymanager/${IMAGE}-dev)
208+
as `nginxproxymanager/${IMAGE}-dev:${BRANCH_LOWER}`
209+
210+
**Note:** ensure you backup your NPM instance before testing this image! Especially if there are database changes
211+
**Note:** this is a different docker image namespace than the official image
212+
""", true)
193213
}
194214
}
195215
}
@@ -200,20 +220,13 @@ pipeline {
200220
always {
201221
sh 'echo Reverting ownership'
202222
sh 'docker run --rm -v "$(pwd):/data" jc21/ci-tools chown -R "$(id -u):$(id -g)" /data'
203-
}
204-
success {
205-
juxtapose event: 'success'
206-
sh 'figlet "SUCCESS"'
223+
printResult(true)
207224
}
208225
failure {
209226
archiveArtifacts(artifacts: 'debug/**/*.*', allowEmptyArchive: true)
210-
juxtapose event: 'failure'
211-
sh 'figlet "FAILURE"'
212227
}
213228
unstable {
214229
archiveArtifacts(artifacts: 'debug/**/*.*', allowEmptyArchive: true)
215-
juxtapose event: 'unstable'
216-
sh 'figlet "UNSTABLE"'
217230
}
218231
}
219232
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<img src="https://nginxproxymanager.com/github.png">
33
<br><br>
4-
<img src="https://img.shields.io/badge/version-2.11.3-green.svg?style=for-the-badge">
4+
<img src="https://img.shields.io/badge/version-2.12.1-green.svg?style=for-the-badge">
55
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
66
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
77
</a>

backend/.vscode/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

backend/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ app.use(function (req, res, next) {
5252
});
5353

5454
app.use(require('./lib/express/jwt')());
55-
app.use('/', require('./routes/api/main'));
55+
app.use('/', require('./routes/main'));
5656

5757
// production error handler
5858
// no stacktraces leaked to user

backend/config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"database": {
3-
"engine": "mysql",
3+
"engine": "mysql2",
44
"host": "db",
55
"name": "npm",
66
"user": "npm",

0 commit comments

Comments
 (0)