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 --no-cache add sshpass openssh-client \
|
||||||
&& apk del build-dependencies
|
&& apk del build-dependencies
|
||||||
|
|
||||||
RUN addgroup -S jenkins && adduser -S jenkins -G jenkins && mkdir -p /home/jenkins/agent
|
RUN addgroup -S ansible && adduser -S ansible -G ansible
|
||||||
USER jenkins
|
USER ansible
|
||||||
WORKDIR /home/jenkins/agent
|
WORKDIR /home/ansible
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--version"]
|
CMD ["ansible-playbook", "--version"]
|
||||||
|
|
||||||
|
|||||||
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
podLabel = "image-build-${UUID.randomUUID()}"
|
podLabel = "image-build-${UUID.randomUUID()}"
|
||||||
containerRegistry = 'cr.thejimnicholson.com/tjn'
|
containerRegistry = 'docker.home.thejimnicholson.com/ansible-playbook-runner'
|
||||||
containerImage = 'ansible-playbook-runner'
|
containerImage = 'ansible-playbook-runner'
|
||||||
|
|
||||||
podTemplate(label: podLabel, containers: [
|
podTemplate(label: podLabel, containers: [
|
||||||
@ -11,8 +11,7 @@ podTemplate(label: podLabel, containers: [
|
|||||||
command: 'sleep',
|
command: 'sleep',
|
||||||
args: '30d'
|
args: '30d'
|
||||||
)
|
)
|
||||||
], volumes: [secretVolume(secretName: 'cr-regcred', mountPath: '/kaniko/.docker')],
|
], workspaceVolume: dynamicPVC()) {
|
||||||
workspaceVolume: dynamicPVC()) {
|
|
||||||
node(podLabel) {
|
node(podLabel) {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
checkout scm
|
checkout scm
|
||||||
@ -31,7 +30,7 @@ workspaceVolume: dynamicPVC()) {
|
|||||||
--insecure \
|
--insecure \
|
||||||
--skip-tls-verify \
|
--skip-tls-verify \
|
||||||
--tarPath ./${containerImage}-${GIT_TAG}.image.tar \
|
--tarPath ./${containerImage}-${GIT_TAG}.image.tar \
|
||||||
--destination=${containerRegistry}/${containerImage}:${GIT_TAG} \
|
--destination=${containerRegistry}/${containerImage}:${GIT_HASH} \
|
||||||
--destination=${containerRegistry}/${containerImage}:latest"
|
--destination=${containerRegistry}/${containerImage}:latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user