commit 9a50641854623ac36508c3f07522dc33fd69cd6e Author: Kegan Myers Date: Mon Jun 29 02:03:10 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..a17eae3 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2e90737 --- /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/mopidy" + + // build + def app = docker.build("${imageName}:${gitCommit}") + // beta push + docker.withRegistry("https://${registryHost}", "registry-terrible-network") { + app.push("latest") + } + } + } + } + } +} +