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 Add other tasks to build, test, and deploy your project.
# echo See https://aka.ms/yaml # echo See https://aka.ms/yaml
# displayName: 'Run a multi-line script' # displayName: 'Run a multi-line script'
# - job: DockerTaskTest - job: DockerTaskTest
# container: container:
# image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04' image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
# endpoint: devfra endpoint: devfra
# steps: steps:
# - task: Docker@2 - task: Docker@2
# displayName: Image build test name: dockerLoginDevFra
# inputs: displayName: Docker Login to devfra
# command: buildAndPush inputs:
# Dockerfile: docker/backend/Dockerfile command: login
# buildContext: . containerRegistry: devFra
# tags: backend - 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 # - job: BuildKitTest
# container: # container:
# image: 'devfra.azurecr.io/de.fraport.trusted/buildkit:0.12.1' # image: 'devfra.azurecr.io/de.fraport.trusted/buildkit:0.12.1'
@ -38,15 +47,15 @@ jobs:
# --local context=. \ # --local context=. \
# --local dockerfile=docker/backend/Dockerfile # --local dockerfile=docker/backend/Dockerfile
# displayName: BuildKit test # displayName: BuildKit test
- job: CustomBuildahTest # - job: CustomBuildahTest
container: # container:
image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04' # image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04'
endpoint: devfra # endpoint: devfra
steps: # steps:
- script: | # - script: |
id # id
docker build --help # docker build --help
sudo apt-get -y update # sudo apt-get -y update
sudo apt-get -y install buildah # sudo apt-get -y install buildah
buildah bud -t fradrive-backend-test --volume .:/mnt/fradrive --file docker/backend/Dockerfile # buildah bud -t fradrive-backend-test --volume .:/mnt/fradrive --file docker/backend/Dockerfile
displayName: Build buildah image # displayName: Build buildah image