Changed basic auth to managed identity
This commit is contained in:
parent
c707974a2e
commit
6522977280
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -39,7 +39,8 @@ pipeline {
|
|||||||
container('docker') {
|
container('docker') {
|
||||||
sh '''
|
sh '''
|
||||||
docker build -t ${DOCKER_IMAGE} .
|
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}
|
docker push ${DOCKER_IMAGE}
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
@ -30,19 +30,11 @@ spec:
|
|||||||
mountPath: /home/jenkins/agent
|
mountPath: /home/jenkins/agent
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:dind
|
image: marcin00.azurecr.io/azure-cli-docker:slim-bookworm
|
||||||
command:
|
|
||||||
- dockerd-entrypoint.sh
|
|
||||||
args:
|
|
||||||
- "-H"
|
|
||||||
- "tcp://0.0.0.0:2375"
|
|
||||||
tty: true
|
tty: true
|
||||||
workingDir: /home/jenkins/agent
|
workingDir: /home/jenkins/agent
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
env:
|
|
||||||
- name: DOCKER_TLS_CERTDIR
|
|
||||||
value: ""
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: workspace-volume
|
- name: workspace-volume
|
||||||
mountPath: /home/jenkins/agent
|
mountPath: /home/jenkins/agent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user