Skip to content

Commit

Permalink
Add pkgcloud upload to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspustina committed Feb 6, 2020
1 parent 729c40e commit d9c4dda
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ stages:
- stage: Publish_Release
displayName: "Publish Release"
dependsOn: Build_Release_Artefacts
# condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
jobs:
- job: 'Publish_To_GitHub'
displayName: "Publish to GitHub"
Expand Down Expand Up @@ -209,4 +210,27 @@ stages:
isPreRelease: false
addChangeLog: true
compareWith: 'lastFullRelease'
- job: 'Publish_To_PackageCloud'
displayName: "Publish to PackageCloud - CenterDevice"
# condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.4'
addToPath: true
displayName: "Install Ruby"
- script: gem install package_cloud
displayName: 'Install PackageCloud CLI'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'Deb_Pkg'
targetPath: '$(Build.ArtifactStagingDirectory)'
displayName: "Download Debian Package"
- script: |
ls -al $BUILD_ARTIFACTSTAGINGDIRECTORY && \
package_cloud push centerdevice/infrastructure/ubuntu/bionic ${BUILD_ARTIFACTSTAGINGDIRECTORY}/*.deb
displayName: 'Upload Debian Package to PackageCloud'
env:
PACKAGECLOUD_TOKEN: $(PACKAGECLOUD_API_TOKEN_CENTERDEVICE)

0 comments on commit d9c4dda

Please sign in to comment.