ci(azure-pipelines): create basic Docker@2 task for building test image
This commit is contained in:
parent
8d8d78dc81
commit
a2bacf8e12
@ -6,7 +6,7 @@ pool: 'Prod Private Agent Pool'
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: HelloWorld
|
- job: HelloWorld
|
||||||
container:
|
container: &ubuntu
|
||||||
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:
|
||||||
@ -16,3 +16,14 @@ 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: ContainerTest
|
||||||
|
container: *ubuntu
|
||||||
|
steps:
|
||||||
|
- task: Docker@2
|
||||||
|
displayName: Image build test
|
||||||
|
inputs:
|
||||||
|
command: buildAndPush
|
||||||
|
Dockerfile: docker/backend/Dockerfile
|
||||||
|
buildContext: .
|
||||||
|
tags: backend
|
||||||
|
|
||||||
Reference in New Issue
Block a user