Adding docker build

This commit is contained in:
TheHouseWrecker
2020-03-30 23:14:48 +09:00
parent cd56230374
commit d1d556db3d
2 changed files with 12 additions and 8 deletions
+11 -7
View File
@@ -1,4 +1,9 @@
pipeline {
environment {
registry = "housewrecker/gaps"
registryCredential = 'dockerhub'
}
agent {
docker {
image 'adoptopenjdk/maven-openjdk8'
@@ -21,14 +26,13 @@ pipeline {
}
}
}
stage('Install Node') {
steps {
sh 'apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs \
&& curl -L https://www.npmjs.com/install.sh | sh'
sh 'npm install'
stage('Building image') {
steps{
script {
docker.build registry + ":$BUILD_NUMBER"
}
}
}
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gaps",
"version": "0.2.2-alpha",
"version": "0.2.2",
"description": "Gaps searches through your Plex Server or local folders for all movies, then queries for known movies in the same collection. If those movies don't exist in your library, Gaps will recommend getting those movies, legally of course.",
"main": "/",
"dependencies": {},