.. _tutorial-set-up-workflow-templates: ========================= Set up workflow templates ========================= The best way to ask Debusine to do some work for you is to create :ref:`explanation-workflows`. In this tutorial, you will discover how to set up workflow templates on your own instance. Prerequisites ============= This tutorial assumes that you installed :ref:`your own instance ` and that you have administrative access it via :ref:`debusine-admin `. You can skip this tutorial if you're using a managed instance such as debusine.debian.net, since in those cases suitable workflow templates have already been created for you. If you haven't done so already, you'll need to make yourself an owner of the default workspace in order to be allowed to create workflow templates in it. .. code-block:: console $ sudo -u debusine-server debusine-admin group create debusine/Admins $ sudo -u debusine-server debusine-admin workspace grant_role \ debusine/System owner Admins $ sudo -u debusine-server debusine-admin group members debusine/Admins \ --add YOUR-USER-NAME You will also need to :ref:`set up the Debusine client `. Create a build environment ========================== Various :ref:`worker tasks ` require build environments, which are created using the :ref:`update_environments ` workflow. Start by creating a :ref:`debian:environments ` collection on your server: .. code-block:: console $ sudo -u debusine-server debusine-admin create_collection \ debian debian:environments `. If you wish, you can vary the ``targets`` dictionary to build different environments, or automate this workflow to run regularly. Set up the Debian pipeline ========================== The :ref:`debian_pipeline ` workflow is a powerful tool that coordinates all the steps typically involved in building and testing an upload to Debian; it also has options to run tests on other packages that depend on your package, and perform the upload for you at the end. On your client, create a suitable workflow template: .. code-block:: console $ debusine create-workflow-template \ debian-qa-unshare debian_pipeline <