Skip to content

Commit

Permalink
feat(ci): Prepare for docker image publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrewe committed Jul 24, 2020
1 parent 14b81a2 commit a58a5d4
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,24 @@ stages:
- script: python -m pip install poetry
displayName: 'Install build tools'
- script: poetry build
displayName: Build distributions
- script: ls -lRh
displayName: Build Distributions
- publish: dist
name: python_dists
displayName: Publish distributions
displayName: Publish Distributions
- stage: publish
displayName: Publish Packages
dependsOn: build
condition: succeeded()
pool:
vmImage: 'ubuntu-18.04'
jobs:
- job: docker_publish
displayName: Publish Docker Image
variables:
imageName: 'glaux/vault-ssh-renew'
steps:
- download: current
artifact: docker_image
displayName: Download Docker Image
- script: gunzip -c $(Pipeline.Workspace)/docker_image/docker-image.tar.gz | docker import - $(imageName):$(Build.BuildId)
displayName: Import Image Into Daemon

0 comments on commit a58a5d4

Please sign in to comment.