mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-24 21:51:34 +10:00
Compare commits
1 Commits
ecbd9a0480
...
81fd8ce6f6
| Author | SHA1 | Date | |
|---|---|---|---|
| 81fd8ce6f6 |
@ -1,40 +0,0 @@
|
|||||||
# Docker
|
|
||||||
# Build and push an image to Azure Container Registry
|
|
||||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
- main
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- repo: self
|
|
||||||
|
|
||||||
variables:
|
|
||||||
# Container registry service connection established during pipeline creation
|
|
||||||
dockerRegistryServiceConnection: 'c6da80c0-7d65-4b93-9203-3b91c4f6b5dc'
|
|
||||||
imageRepository: 'reactiveresume'
|
|
||||||
containerRegistry: 'reactiveresume.azurecr.io'
|
|
||||||
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
|
|
||||||
tag: '$(Build.BuildId)'
|
|
||||||
|
|
||||||
# Agent VM image name
|
|
||||||
vmImageName: 'ubuntu-latest'
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- stage: Build
|
|
||||||
displayName: Build and push stage
|
|
||||||
jobs:
|
|
||||||
- job: Build
|
|
||||||
displayName: Build
|
|
||||||
pool:
|
|
||||||
vmImage: $(vmImageName)
|
|
||||||
steps:
|
|
||||||
- task: Docker@2
|
|
||||||
displayName: Build and push an image to container registry
|
|
||||||
inputs:
|
|
||||||
command: buildAndPush
|
|
||||||
repository: $(imageRepository)
|
|
||||||
dockerfile: $(dockerfilePath)
|
|
||||||
containerRegistry: $(dockerRegistryServiceConnection)
|
|
||||||
arguments: '--platform linux/amd64,linux/arm64'
|
|
||||||
tags: |
|
|
||||||
$(tag)
|
|
||||||
Reference in New Issue
Block a user