update pydpkg
Gitea/docker-artifact/pipeline/head There was a failure building this commit Details

This commit is contained in:
dave 2023-05-28 17:54:35 -07:00
parent 3533fffa61
commit 2637941e89
2 changed files with 69 additions and 2 deletions

68
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,68 @@
def image_name = "dpedu/artifact"
pipeline {
agent {
kubernetes {
yaml """
apiVersion: v1
kind: Pod
spec:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution: # avoid nodes already running a jenkins job
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: jenkins
operator: In
values:
- slave
topologyKey: node
containers:
- name: docker
image: docker:20-dind
args:
- "--insecure-registry"
- "dockermirror:5000"
securityContext:
privileged: true
"""
}
}
stages {
stage("Build image") {
steps {
container("docker") {
script {
try {
docker.withRegistry('http://dockermirror:5000') {
docker.image("ubuntu:bionic").pull()
docker.image(image_name).pull() // Pull a recent version to share base layers with (?)
}
} catch (exc) {
echo "couldn't pull image, assuming we're building it for the first time"
}
docker.build(image_name)
}
}
}
}
stage("Push image") {
steps {
container("docker") {
script {
docker.withRegistry('http://dockermirror:5000') {
docker.image(image_name).push("latest")
}
}
}
}
}
stage("Show images") {
steps {
container("docker") {
sh 'docker images'
}
}
}
}
}

View File

@ -20,7 +20,7 @@ PGPy==0.4.1
portend==2.4
pyasn1==0.4.5
pycparser==2.19
-e git+https://git.davepedu.com/dave/python-dpkg.git#egg=pydpkg
-e git+https://git.davepedu.com/dave/python-dpkg.git@a1c0212e09#egg=pydpkg
PyMySQL==0.9.3
python-dateutil==2.8.0
python-gnupg==0.4.4
@ -32,5 +32,4 @@ six==1.12.0
SQLAlchemy==1.3.3
tempora==1.14.1
urllib3==1.24.2
wheel==0.33.1
zc.lockfile==1.4