Skip to content

Commit

Permalink
kamel: ci: flatten and upload only debug dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Feb 3, 2024
1 parent aefeb47 commit 6e93cb9
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .azure-pipelines/kamel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,18 @@ stages:
displayName: 'Checkout code'
- download: current
patterns: |
**/target/sonic-broadcom*
**/target/sonic-aboot-broadcom*
**/target/sonic-mellanox*
**/target/sonic-innovium*
**/target/docker-*-dbg.gz
**/target/sonic-broadcom.*
**/target/sonic-aboot-broadcom.*
**/target/sonic-mellanox.*
**/target/sonic-innovium.*
- script: |
cd $(Pipeline.Workspace)/
# Example:
# mv sonic-buildimage.innovium/target/docker-macsec-dbg.gz docker-innovium-macsec-dbg.tar.gz
find sonic-buildimage.*/ -name \*-dbg.gz -type f \
-exec sh -c "new=\$(echo '{}' | sed -E 's/sonic-buildimage\.([^\\/]+)\\/target\\/docker-([^.]+)\.gz/docker-\1-\2.tar.gz/gm;t'); mv {} \$new" \;
displayName: 'Flatten debug image filenames'
- task: GitHubRelease@1
displayName: Make Github release with artifacts
inputs:
Expand All @@ -129,7 +137,9 @@ stages:
releaseNotesSource: inline
releaseNotesInline: 'Build version `SONiC.$(Build.SourceBranchName)-kamel.$(Build.BuildId)-$(Build.SourceVersion)`'
assets: |
$(Pipeline.Workspace)/**/target/sonic-broadcom*
$(Pipeline.Workspace)/**/target/sonic-aboot-broadcom*
$(Pipeline.Workspace)/**/target/sonic-mellanox*
$(Pipeline.Workspace)/**/target/sonic-innovium*
$(Pipeline.Workspace)/**/target/sonic-broadcom.*
$(Pipeline.Workspace)/**/target/sonic-aboot-broadcom.*
$(Pipeline.Workspace)/**/target/sonic-mellanox.*
$(Pipeline.Workspace)/**/target/sonic-innovium.*
$(Pipeline.Workspace)/docker-*-dbg.tar.gz

0 comments on commit 6e93cb9

Please sign in to comment.