1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-05 12:57:50 +00:00
starship/ci/azure-test-docker.yml

20 lines
607 B
YAML
Raw Normal View History

jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool:
vmImage: ubuntu-16.04
steps:
- script: docker pull starshipcommand/starship-test
displayName: Pull docker image
- script: ./integration_test
displayName: Run integration test suite
- script: |
docker login -u $(dockerUsername) -p $(dockerPassword)
docker push starshipcommand/starship-test
# Only push new image if on master and build is passing
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Push image to dockerhub