ci(azure-pipelines): cleanup yaml
This commit is contained in:
parent
425804e4b6
commit
4766dea3d5
@ -5,18 +5,7 @@
|
|||||||
pool: 'Prod Private Agent Pool'
|
pool: 'Prod Private Agent Pool'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# - job: HelloWorld
|
- job: BuildImages
|
||||||
# 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:
|
container:
|
||||||
image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
|
image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
|
||||||
endpoint: devfra
|
endpoint: devfra
|
||||||
@ -42,43 +31,21 @@ jobs:
|
|||||||
--build-arg MOUNT_DIR=$(Build.Repository.LocalPath) \
|
--build-arg MOUNT_DIR=$(Build.Repository.LocalPath) \
|
||||||
--build-arg PROJECT_DIR=/fradrive \
|
--build-arg PROJECT_DIR=/fradrive \
|
||||||
.
|
.
|
||||||
- task: Docker@2
|
# - task: Docker@2
|
||||||
name: dockerBuild
|
# name: dockerBuild
|
||||||
displayName: Backend image build test
|
# displayName: Backend image build test
|
||||||
inputs:
|
# inputs:
|
||||||
command: build
|
# command: build
|
||||||
Dockerfile: docker/backend/Dockerfile
|
# Dockerfile: docker/backend/Dockerfile
|
||||||
buildContext: .
|
# buildContext: .
|
||||||
tags: |
|
# tags: |
|
||||||
$(Build.BuildNumber)
|
# $(Build.BuildNumber)
|
||||||
backend
|
# backend
|
||||||
arguments: |
|
# arguments: |
|
||||||
--build-arg HTTPS_PROXY=http://proxy.frankfurt-airport.de:8080
|
# --build-arg HTTPS_PROXY=http://proxy.frankfurt-airport.de:8080
|
||||||
--build-arg HTTP_PROXY=http://proxy.frankfurt-airport.de:8080
|
# --build-arg HTTP_PROXY=http://proxy.frankfurt-airport.de:8080
|
||||||
--build-arg NO_PROXY='localhost,127.0.0.1,*.docker.internal,*.azmk8s.io,devfra.azurecr.io,devfra.westeurope.data.azurecr.io'
|
# --build-arg NO_PROXY='localhost,127.0.0.1,*.docker.internal,*.azmk8s.io,devfra.azurecr.io,devfra.westeurope.data.azurecr.io'
|
||||||
--build-arg FROM_IMG=devfra.azurecr.io/de.fraport.build/haskell
|
# --build-arg FROM_IMG=devfra.azurecr.io/de.fraport.build/haskell
|
||||||
--build-arg MOUNT_DIR=$(Build.Repository.LocalPath)
|
# --build-arg MOUNT_DIR=$(Build.Repository.LocalPath)
|
||||||
--build-arg PROJECT_DIR=/fradrive
|
# --build-arg PROJECT_DIR=/fradrive
|
||||||
# -v $(Build.Repository.LocalPath):/mnt/fradrive # supported in podman build, but not in docker build
|
# # -v $(Build.Repository.LocalPath):/mnt/fradrive # supported in podman build, but not in docker build
|
||||||
# - 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
|
|
||||||
# - 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
|
|
||||||
Loading…
Reference in New Issue
Block a user