commit 6600cc209d3085bc26d87b112d774dedaae0aad8 Author: Kegan Myers Date: Sun Jun 28 21:37:50 2020 -0500 initial commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aae93fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM ubuntu:20.04 +ADD https://github.com/badaix/snapcast/releases/download/v0.20.0/snapserver_0.20.0-1_amd64.deb snapserver.deb +RUN apt install ./snapserver.deb && rm snapserver.deb diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..42882b9 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent any + stages { + stage('build') { + steps { + checkout scm + script { + sh 'git rev-parse HEAD > commit' + def gitCommit = readFile('commit').trim() + def registryHost = "registry.terrible.network" + def imageName = "${registryHost}/terribleplan/snapcast-server" + + // build + def app = docker.build("${imageName}:${gitCommit}") + // beta push + docker.withRegistry("https://${registryHost}", "registry-terrible-network") { + app.push("latest") + } + } + } + } + } +} +