Compare commits
No commits in common. "master" and "f117f82ec0d7b033f6ee7b99cc70d57dee4a1943" have entirely different histories.
master
...
f117f82ec0
@ -8,9 +8,9 @@ RUN apk add --no-cache python3 py-pip openssl ca-certificates bash git sudo zip
|
||||
&& apk --no-cache add sshpass openssh-client \
|
||||
&& apk del build-dependencies
|
||||
|
||||
RUN addgroup -S jenkins && adduser -S jenkins -G jenkins && mkdir -p /home/jenkins/agent
|
||||
USER jenkins
|
||||
WORKDIR /home/jenkins/agent
|
||||
RUN addgroup -S ansible && adduser -S ansible -G ansible
|
||||
USER ansible
|
||||
WORKDIR /home/ansible
|
||||
|
||||
CMD ["ansible-playbook", "--version"]
|
||||
|
||||
|
||||
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
podLabel = "image-build-${UUID.randomUUID()}"
|
||||
containerRegistry = 'cr.thejimnicholson.com/tjn'
|
||||
containerRegistry = 'docker.home.thejimnicholson.com/ansible-playbook-runner'
|
||||
containerImage = 'ansible-playbook-runner'
|
||||
|
||||
podTemplate(label: podLabel, containers: [
|
||||
@ -11,8 +11,7 @@ podTemplate(label: podLabel, containers: [
|
||||
command: 'sleep',
|
||||
args: '30d'
|
||||
)
|
||||
], volumes: [secretVolume(secretName: 'cr-regcred', mountPath: '/kaniko/.docker')],
|
||||
workspaceVolume: dynamicPVC()) {
|
||||
], workspaceVolume: dynamicPVC()) {
|
||||
node(podLabel) {
|
||||
stage('Checkout') {
|
||||
checkout scm
|
||||
@ -31,7 +30,7 @@ workspaceVolume: dynamicPVC()) {
|
||||
--insecure \
|
||||
--skip-tls-verify \
|
||||
--tarPath ./${containerImage}-${GIT_TAG}.image.tar \
|
||||
--destination=${containerRegistry}/${containerImage}:${GIT_TAG} \
|
||||
--destination=${containerRegistry}/${containerImage}:${GIT_HASH} \
|
||||
--destination=${containerRegistry}/${containerImage}:latest"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user