Update azure-pipelines.yaml for Azure Pipelines

This commit is contained in:
Sarah Vaupel 2024-11-26 12:23:04 +00:00
parent cc7fa8333c
commit fe9a92fd3f

View File

@ -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
# - 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