initial commit
All checks were successful
Gitea/docker-s3www/pipeline/head This commit looks good

This commit is contained in:
dave 2022-04-21 21:20:54 -07:00
commit b64e114b73
2 changed files with 47 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM ubuntu:focal
RUN apt-get update && \
apt-get install -y wget && \
cd /usr/local/bin && \
wget -qO- https://github.com/harshavardhana/s3www/releases/download/v0.5.3/s3www_0.5.3_linux_amd64.tar.gz | tar zxvf - s3www
ENTRYPOINT ["/usr/local/bin/s3www"]

39
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,39 @@
pipeline {
agent {
kubernetes {
// inheritFrom 'mypod'
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: docker
image: docker:20-dind
args:
- "--insecure-registry"
- "dockermirror:5000"
securityContext:
privileged: true
"""
}
}
stages {
stage("Build iamge") {
steps {
container("docker") {
script {
def image
try {
image = docker.image("dockermirror:5000/dpedu/nagdebbuilder-${distro}")
image.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"
image = docker.build("dockermirror:5000/dpedu/s3www",)
}
// image.push()
}
}
}
}
}
}