From 3622bfdd962f1123d351c04d9c6a009da4e883a8 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 12 Sep 2023 21:57:58 -0400 Subject: try printing whole _service file --- .woodpecker.yml | 16 ++++++---------- scripts/ci-print-_service.sh | 32 ++++++++++++++++++++++++++++++++ scripts/prep-librewolf-dpkg.conf | 4 ++++ 3 files changed, 42 insertions(+), 10 deletions(-) create mode 100755 scripts/ci-print-_service.sh diff --git a/.woodpecker.yml b/.woodpecker.yml index aa8dc8d..d7c733d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,8 +2,7 @@ steps: build: image: debian commands: - - echo ./scripts/prep-librewolf-dpkg.sh - - echo disabled for testing + - ./scripts/prep-librewolf-dpkg.sh upload: image: woodpeckerci/plugin-s3 secrets: [aws_access_key_id, aws_secret_access_key] @@ -16,11 +15,8 @@ steps: display-links: image: alpine commands: - - . ./scripts/prep-librewolf-dpkg.conf - - env - - echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf_$${firefox_version}.orig.tar.xz" - - echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf-$${distro_firefox_version}.debian.tar.xz" - - echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf-$${distro_firefox_version}.dsc" - #- echo "https://storage.ci.librewolf.net/artifacts/${CI_BUILD_NUMBER}/librewolf_$(cat version).orig.tar.xz" - #- echo "https://storage.ci.librewolf.net/artifacts/${CI_BUILD_NUMBER}/librewolf-$(cat version)-$(cat release).debian.tar.xz" - #- echo "https://storage.ci.librewolf.net/artifacts/${CI_BUILD_NUMBER}/librewolf-$(cat version)-$(cat release).dsc" + - ./scripts/ci-print-_service.sh + #- . ./scripts/prep-librewolf-dpkg.conf + #- echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf_$${firefox_version}.orig.tar.xz" + #- echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf-$${distro_firefox_version}.debian.tar.xz" + #- echo "https://storage.ci.librewolf.net/artifacts/${CI_PIPELINE_NUMBER}/librewolf-$${distro_firefox_version}.dsc" diff --git a/scripts/ci-print-_service.sh b/scripts/ci-print-_service.sh new file mode 100755 index 0000000..fcc499c --- /dev/null +++ b/scripts/ci-print-_service.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# Goal: print entirety of a useful OBS service file + +##################################### +# Load settings +# basically, dot-source the conf file. +test -z "${librewolf_dpkg_conf}" && export librewolf_dpkg_conf="$( find "$( dirname "${0}" )" -maxdepth 2 -name "prep-librewolf-dpkg.conf" -print 2>/dev/null | head -n1 )" +test ! -r "${librewolf_dpkg_conf}" && { echo "Unable to load config file, which should be named prep-librewolf-dpkg.conf. Aborted." 1>&2 ; exit 1 ; } +. "${librewolf_dpkg_conf}" + +cat < + + ${ARTIFACT_PROTOCOL} + ${ARTIFACT_HOSTNAME} + ${ARTIFACT_PATHDIR}/librewolf_${distro_firefox_version}.debian.tar.xz + librewolf_${distro_firefox_version}.debian.tar.xz + + + ${ARTIFACT_PROTOCOL} + ${ARTIFACT_HOSTNAME} + ${ARTIFACT_PATHDIR}/librewolf_${distro_firefox_version}.dsc + librewolf_${distro_firefox_version}.dsc + + + ${ARTIFACT_PROTOCOL} + ${ARTIFACT_HOSTNAME} + ${ARTIFACT_PATHDIR}/librewolf_${firefox_version}.orig.tar.xz + librewolf_${firefox_version}.orig.tar.xz + + +EOF diff --git a/scripts/prep-librewolf-dpkg.conf b/scripts/prep-librewolf-dpkg.conf index 915e3fc..3d64f3a 100644 --- a/scripts/prep-librewolf-dpkg.conf +++ b/scripts/prep-librewolf-dpkg.conf @@ -12,3 +12,7 @@ source_version=${source_version:-'117.0-1'} settings_commit=${settings_commit:-'master'} CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)} output_dir=${CI_PROJECT_DIR}/out + +ARTIFACT_PROTOCOL=https +ARTIFACT_HOSTNAME=storage.ci.librewolf.net +ARTIFACT_PATHDIR="/artifacts/${CI_PIPELINE_NUMBER}" -- cgit