initial commit
This commit is contained in:
commit
9a50641854
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM ubuntu:20.04
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y wget gnupg2 && \
|
||||||
|
wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add - && \
|
||||||
|
wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y mopidy mopidy-gmusic mopidy-local mopidy-mpd mopidy-podcast && \
|
||||||
|
apt-get remove -y wget && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
CMD mopidy
|
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/mopidy"
|
||||||
|
|
||||||
|
// 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