forked from skupperproject/skupper-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.yaml
39 lines (36 loc) · 1.19 KB
/
pipeline.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
parameters:
- name: 'arch'
type: string
default: X86
- name: 'repository'
type: string
- name: 'imageTag'
type: string
steps:
- script: |
echo "gcr.io/${{ parameters.repository }}:${{ parameters.imageTag }}" > ${{ parameters.arch }}_DOCKER_IMAGE
echo "gcr.io/${{ parameters.repository }}:${{ parameters.imageTag }}"
displayName: 'Save Docker image name and tag to ${{ parameters.arch }}_DOCKER_IMAGE into artifacts'
- task: CopyFiles@2
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)
TargetFolder: $(Build.ArtifactStagingDirectory)
Contents: |
${{ parameters.arch }}_DOCKER_IMAGE
OverWrite: true
displayName: 'artefacts to publish'
- task: Docker@2
displayName: 'build and push docker image'
inputs:
containerRegistry: 'Edgeworx GCP'
repository: ${{ parameters.repository }}
command: 'buildAndPush'
Dockerfile: 'Dockerfile.iofog'
tags: |
$(Build.SourceBranchName)
${{ parameters.imageTag }}
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: ${{ parameters.arch }}
displayName: 'publish artifacts'