name: Packaging on: push: tags: - v* # Triggering on PRs and arbitrary branch pushes is not enabled because most of the time only the CI build should be # triggered, not the packaging build. In cases where you want to test changes to this workflow this trigger enables # you to manually invoke this workflow on an arbitrary branch as needed. workflow_dispatch: jobs: package-dnst: uses: NLnetLabs/ploutos/.github/workflows/pkg-rust.yml@v9 secrets: DOCKER_HUB_ID: ${{ vars.DOCKER_HUB_ID }} DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} with: docker_org: nlnetlabs docker_repo: dnst docker_build_rules: pkg/rules/docker-images-to-build.yml docker_sanity_check_command: --version package_build_rules: pkg/rules/packages-to-build.yml package_test_rules: pkg/rules/packages-to-test.yml package_test_scripts_path: pkg/test-scripts/test-.sh cross_build_args: --features static-openssl deb_extra_build_packages: libssl-dev rpm_extra_build_packages: make openssl-devel rpm_scriptlets_path: pkg/rpm/scriptlets.toml package-dnst-ldnsutils: # Package empty dnst-ldnsutils package to create symlinks uses: NLnetLabs/ploutos/.github/workflows/pkg-rust.yml@v9 with: package_build_rules: pkg/dnst-ldnsutils/pkg/rules/packages-to-build.yml package_test_rules: pkg/dnst-ldnsutils/pkg/rules/packages-to-test.yml package_test_scripts_path: pkg/dnst-ldnsutils/pkg/test-scripts/test-.sh # Make sure that testing of the meta package dnst-ldnsutils is able # to find a dnst package from the proposed repos to install. deb_apt_source: 'deb [arch=amd64] https://packages.nlnetlabs.nl/linux/${OS_NAME}/ ${OS_REL}-proposed main' rpm_yum_repo: | [nlnetlabs] name=NLnet Labs Testing baseurl=https://packages.nlnetlabs.nl/linux/centos/$releasever/proposed/$basearch enabled=1 package_test_always_add_repo: true rpm_scriptlets_path: pkg/dnst-ldnsutils/pkg/rpm/scriptlets.toml manifest_dir: pkg/dnst-ldnsutils artifact_prefix: dnst-ldnsutils