Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Starter pipeline
- # Start with a minimal pipeline that you can customize to build and deploy your code.
- # Add steps that build, run tests, deploy, and more:
- # https://aka.ms/yaml
- trigger:
- - main
- pool:
- vmImage: ubuntu-latest
- steps:
- - script: echo Hello, world!
- displayName: 'Run a one-line script'
- - script: |
- echo Add other tasks to build, test, and deploy your project.
- echo See https://aka.ms/yaml
- displayName: 'Run a multi-line script'
- - task: DockerInstaller@0
- inputs:
- dockerVersion: '17.09.0-ce'
- releaseType: stable
- - task: Docker@2
- inputs:
- containerRegistry: 'DockerHub'
- command: 'login'
- - task: Docker@2
- displayName: Build
- inputs:
- command: 'build'
- containerRegistry: 'DockerHub'
- repository:
- Dockerfile: '**/Dockerfile'
- arguments: '-t onetimemail/test:$(Build.BuildId)'
- - task: Docker@2
- displayName: Push
- inputs:
- command: 'push'
- containerRegistry: 'DockerHub'
- repository: onetimemail
- tags: |
- test:$(Build.BuildId)
- - script:
- docker image ls
- - script: |
- /opt/hostedtoolcache/docker-stable/17.9.0-ce/x64/docker push onetimemail/test:$(Build.BuildId)
Advertisement
Add Comment
Please, Sign In to add comment