fradrive/azure-pipelines.yaml

40 lines
1.1 KiB
YAML

# SPDX-FileCopyrightText: 2024 Sarah Vaupel <sarah.vaupel@uniworx.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
pool: 'Prod Private Agent Pool'
jobs:
- job: HelloWorld
container:
image: 'devfra.azurecr.io/de.fraport.trusted/ubuntu:22.04'
endpoint: devfra
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
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: BuildKitTest
container:
image: 'devfra.azurecr.io/de.fraport.trusted/buildkit:0.12.1'
endpoint: devfra
steps:
- script: buildctl build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=docker/backend/Dockerfile
displayName: BuildKit test