initial commit
This commit is contained in:
commit
6600cc209d
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*
|
3
Dockerfile
Normal file
3
Dockerfile
Normal 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
24
Jenkinsfile
vendored
Normal 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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue