diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 13523ee..73dcb86 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,13 +26,24 @@ steps: docker images displayName: 'List docker images1' - task: Docker@2 + displayName: Build inputs: - command: 'buildAndPush' + command: build containerRegistry: $(dockerRegistryServiceConnection) repository: '$(imageName)' tags: '$(shortCommitSha)' Dockerfile: 'Dockerfile' arguments: '--build-arg VITE_BACKEND_URL=http://olympus-api-gateway-aks.olympusai.live/apollo' + +- task: Docker@2 + displayName: Push + inputs: + command: push + containerRegistry: $(dockerRegistryServiceConnection) + repository: '$(imageName)' + tags: '$(shortCommitSha)' + arguments: '--build-arg VITE_BACKEND_URL=http://olympus-api-gateway-aks.olympusai.live/apollo' + - script: | echo "Listing the docker images..." docker images