diff --git a/Jenkinsfile b/Jenkinsfile index fc1ffd3..a9ca32b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,7 +39,8 @@ pipeline { container('docker') { sh ''' docker build -t ${DOCKER_IMAGE} . - echo "${ACR_PASSWORD}" | docker login marcin00.azurecr.io -u ${ACR_USERNAME} --password-stdin + az login --identity + az acr login --name marcin00 docker push ${DOCKER_IMAGE} ''' } diff --git a/podTemplate.yaml b/podTemplate.yaml index 0514d8c..6d8e897 100644 --- a/podTemplate.yaml +++ b/podTemplate.yaml @@ -30,19 +30,11 @@ spec: mountPath: /home/jenkins/agent - name: docker - image: docker:dind - command: - - dockerd-entrypoint.sh - args: - - "-H" - - "tcp://0.0.0.0:2375" + image: marcin00.azurecr.io/azure-cli-docker:slim-bookworm tty: true workingDir: /home/jenkins/agent securityContext: privileged: true - env: - - name: DOCKER_TLS_CERTDIR - value: "" volumeMounts: - name: workspace-volume mountPath: /home/jenkins/agent