Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
trigger:
- none
pr: none
parameters:
- name: containerlist
type: object
default: ["core/image1","core/image2","core/image3","core/image4"]
- name: DockerPushID
type: string
pool:
name: demo-app
stages:
- stage: containers
displayName: Push containers to container registry $(registry)
jobs:
- job: pushcontainers
displayName: Push containers on testexample.azurecr.io
steps:
- checkout: none
- ${{ each container in parameters.containerlist }}:
- task: Docker@2
displayName: pushing image ${{container}}
inputs:
containerRegistry: 'registryconnection'
repository: '${{container}}'
command: 'push'
tags: |
current-${{parameters.DockerPushID}}
current-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment