initial commit

This commit is contained in:
Kegan Myers 2020-06-28 21:37:50 -05:00
commit 6600cc209d
3 changed files with 28 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
*

3
Dockerfile Normal file
View file

@ -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

24
Jenkinsfile vendored Normal file
View file

@ -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")
}
}
}
}
}
}