-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
45 lines (41 loc) · 1.18 KB
/
azure-pipelines.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
trigger:
- main
variables:
DOCKER_CONNECTION: DockerHub
ACR_CONNECTION: 23267-Atlas-CR-Connection
stages:
- stage: Build
jobs:
- job: PrivateBuild
pool: 23267-AtlasApi-DevOps-AgentPool-2024
steps:
- task: Docker@2
name: DockerLogin
inputs:
command: login
containerRegistry: $(ACR_CONNECTION)
- task: Docker@2
name: BuildAndPush
inputs:
command: buildAndPush
addPipelineData: false
containerRegistry: attatlascr
repository: azuredevops-toolbox
tags: latest
- job: PublicBuild
pool:
vmImage: ubuntu-latest
steps:
- script: |
echo "##vso[task.setvariable variable=IMAGE_TAG]$(date +%Y%B%d)"
name: SetImageTag
- task: Docker@2
name: BuildAndPush
inputs:
command: buildAndPush
addPipelineData: false
containerRegistry: $(DOCKER_CONNECTION)
repository: webonyx/azuredevops-toolbox
tags: |
latest
$(IMAGE_TAG)