Browse Source

shared lib

master
parent
commit
3a0cb67e42
  1. 9
      Dockerfile
  2. 28
      Jenkinsfile
  3. 1
      apt.sudo.is.list

9
Dockerfile

@ -6,9 +6,14 @@ MAINTAINER Benedikt Kristinsson <benedikt@lokun.is>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Berlin
ADD https://apt.sudo.is/KEY.gpg /tmp/apt.sudo.is.gpg
COPY apt.sudo.is.list /etc/apt/sources.list.d/apt.sudo.is.list
RUN apt-key add /tmp/apt.sudo.is.gpg && apt-get update
RUN python3 -m pip install -U pip \
&& python3 -m pip install poetry \
&& apt-get update && apt-get install -y ruby ruby-dev rubygems \
&& python3 -m pip install poetry virtualenv-tools3 \
&& apt-get install -y ruby ruby-dev rubygems \
&& gem install --no-document fpm
ARG UID=1000

28
Jenkinsfile vendored

@ -1,27 +1,3 @@
pipeline {
agent any
options {
timestamps()
ansiColor("xterm")
disableConcurrentBuilds()
}
stages {
stage('build 3.8') {
steps {
sh 'docker build --pull --build-arg py3version=3.8 -t benediktkr/poetry:3.8 .'
}
}
stage('build 3.9') {
steps {
sh 'docker build --pull --build-arg py3version=3.9 -t benediktkr/poetry:3.9 .'
}
}
@Library('shared-jenkins-pipelines') _
stage('push') {
steps {
sh 'docker push benediktkr/poetry:3.8'
sh 'docker push benediktkr/poetry:3.9'
}
}
}
}
dockerimg tag: '3.9', cron: 'H 16 * * *'

1
apt.sudo.is.list

@ -0,0 +1 @@
deb https://apt.sudo.is/ /
Loading…
Cancel
Save