Pipeline to build debian package using bash script and publish it behind public URL

Viewed 538

I'm looking for a way to create a pipeline to first build a .NET Core application, then pack it into a .deb file and finally publish the package file behind a URL to be downloaded from.

This pipeline would be run on pushes to main branch.

Is it possible to accomplish using Azure DevOps pipelines?

I already have:

  • pipeline to build the solution and run unit tests for it
  • bash script that collects the binaries and packs them into a debian package (.deb) file.

What I need is to run the packaging bash script, then cache/collect the deb file and publish it behind a public/token-accessable URL, e.g. using the Azure artifacts. The package is quite small, around 4 MB.

1 Answers

You can try to use Universal packages task to publish package (.deb) file to azure artifact.

enter image description here

For details ,please refer to this official document.

Related