Compare commits

..

No commits in common. "master" and "f117f82ec0d7b033f6ee7b99cc70d57dee4a1943" have entirely different histories.

2 changed files with 6 additions and 7 deletions

View File

@ -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
View File

@ -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"
}
}