Compare commits

...

6 Commits

Author SHA1 Message Date
0dc0b5c6ad
Initialize Dockerpath in Jenkinsfile
Some checks failed
continuous-integration/drone/push Build is failing
DragSE Gitea/redis/pipeline/head There was a failure building this commit
continuous-integration/drone Build is passing
2022-01-27 00:17:54 +01:00
356098d858
Revert Jenkinsfile changes
Some checks failed
DragSE Gitea/redis/pipeline/head There was a failure building this commit
2022-01-27 00:10:54 +01:00
28bb81287e
Update Jenkinsfile again
Some checks failed
continuous-integration/drone/push Build is failing
DragSE Gitea/redis/pipeline/head There was a failure building this commit
2022-01-27 00:04:25 +01:00
7b99ead0eb
Update Jenkinsfile
Some checks failed
continuous-integration/drone/push Build is failing
DragSE Gitea/redis/pipeline/head There was a failure building this commit
2022-01-26 23:48:56 +01:00
53f5aec90c
Create Jenkinsfile
Some checks failed
continuous-integration/drone/push Build is failing
DragSE Gitea/redis/pipeline/head There was a failure building this commit
2022-01-26 22:27:04 +01:00
b803e3f70e
Remove Type that crash build
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-14 15:45:05 +01:00
2 changed files with 38 additions and 2 deletions

View File

@ -3,12 +3,13 @@ FROM harbor.dragse.it/base/alpine:3.15
LABEL maintainer="Lennard Brinkhaus <lennard.brinkhaus@dragse.de>" LABEL maintainer="Lennard Brinkhaus <lennard.brinkhaus@dragse.de>"
RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories
RUN apk --no-cache upgrade \ RUN apk --no-cache upgrade \
&& apk --no-cache add ca-certificates wget openssl \ && apk --no-cache add ca-certificates wget openssl \
&& update-ca-certificates \ && update-ca-certificates
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 999 redis RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis
# alpine already has a gid 999, so we'll use the next id # alpine already has a gid 999, so we'll use the next id
RUN apk add --no-cache \ RUN apk add --no-cache \

35
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,35 @@
node {
def app
stage('Initialize'){
def dockerHome = tool 'docker'
env.PATH = "${dockerHome}/bin:${env.PATH}"
}
stage('Clone repository') {
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
stage('Build 6.2.6 image') {
/* This builds the actual image; synonymous to
* docker build on the command line */
def dockerfile = "6.2/Dockerfile"
app = docker.build("harbor.dragse.it/base/redis", "-f ${dockerfile} ./6.2 ")
}
stage('Push image') {
/* Finally, we'll push the image with two tags:
* First, the incremental build number from Jenkins
* Second, the 'latest' tag.
* Pushing multiple tags is cheap, as all the layers are reused. */
docker.withRegistry('https://harbor.dragse.it', 'harbor-repo') {
app.push("${env.BUILD_NUMBER}")
app.push("6")
app.push("6.2")
app.push("6.2.6")
app.push("latest")
}
}
}