mirror of
https://github.com/starship/starship.git
synced 2024-12-27 09:38:51 +01:00
617b278a33
* Publish docker image used in testing * Update integration_test to pull the image and build, using the image as its cache * Publish the built image after successful test runs on master
17 lines
525 B
YAML
17 lines
525 B
YAML
jobs:
|
|
- job: ${{ parameters.name }}
|
|
displayName: ${{ parameters.displayName }}
|
|
pool:
|
|
vmImage: ubuntu-16.04
|
|
|
|
steps:
|
|
- script: ./integration_test
|
|
displayName: Run integration test within Docker
|
|
|
|
- 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
|