diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 7da1e371e..12be6d762 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -16,18 +16,27 @@ jobs: # echo Add other tasks to build, test, and deploy your project. # echo See https://aka.ms/yaml # displayName: 'Run a multi-line script' -# - job: DockerTaskTest -# container: -# image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04' -# endpoint: devfra -# steps: -# - task: Docker@2 -# displayName: Image build test -# inputs: -# command: buildAndPush -# Dockerfile: docker/backend/Dockerfile -# buildContext: . -# tags: backend +- job: DockerTaskTest + container: + image: devfra.azurecr.io/de.fraport.build/tools:1.1.0 + endpoint: devfra + steps: + - task: Docker@2 + name: dockerLoginDevFra + displayName: Docker Login to devfra + inputs: + command: login + containerRegistry: devFra + - task: Docker@2 + name: dockerBuild + displayName: Backend image build+push test + inputs: + command: buildAndPush + Dockerfile: docker/backend/Dockerfile + buildContext: . + tags: | + $(Build.BuildNumber) + backend # - job: BuildKitTest # container: # image: 'devfra.azurecr.io/de.fraport.trusted/buildkit:0.12.1' @@ -38,15 +47,15 @@ jobs: # --local context=. \ # --local dockerfile=docker/backend/Dockerfile # displayName: BuildKit test -- job: CustomBuildahTest - container: - image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04' - endpoint: devfra - steps: - - script: | - id - docker build --help - sudo apt-get -y update - sudo apt-get -y install buildah - buildah bud -t fradrive-backend-test --volume .:/mnt/fradrive --file docker/backend/Dockerfile - displayName: Build buildah image \ No newline at end of file +# - job: CustomBuildahTest +# container: +# image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04' +# endpoint: devfra +# steps: +# - script: | +# id +# docker build --help +# sudo apt-get -y update +# sudo apt-get -y install buildah +# buildah bud -t fradrive-backend-test --volume .:/mnt/fradrive --file docker/backend/Dockerfile +# displayName: Build buildah image \ No newline at end of file