From fc7a556b5d31fda2e752bcaaf18afe36d9612953 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 25 Oct 2022 16:57:09 -0700 Subject: [PATCH] download dependant artifacts via the gitlab API since inter-project dependencies are now a premium feature --- .gitlab-ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14a803a..99cae85 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -62,11 +62,15 @@ test sqlite to postgres: .build-deb: stage: build image: debian:buster - script: + before_script: - echo deb http://deb.debian.org/debian buster-backports main > /etc/apt/sources.list.d/backports.list - apt-get update - - apt-get install -y -t buster-backports git-buildpackage dh-golang bash-completion golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev golang-github-google-uuid-dev golang-github-mattn-go-sqlite3-dev golang-github-lib-pq-dev golang-github-satori-go.uuid-dev + - apt-get install -y -t buster-backports git-buildpackage dh-golang bash-completion golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev golang-github-google-uuid-dev golang-github-mattn-go-sqlite3-dev golang-github-lib-pq-dev golang-github-satori-go.uuid-dev wget unzip + - wget -O golang-github-mdp-qrterminal.zip --quiet "https://gitlab.com/api/v4/projects/signald%2Flibraries%2Fgolang-github-mdp-qrterminal/jobs/artifacts/master/download?job=build" + - wget -O golang-github-jedib0t-go-pretty.zip --quiet "https://gitlab.com/api/v4/projects/signald%2Flibraries%2Fgolang-github-jedib0t-go-pretty/jobs/artifacts/master/download?job=build" + - for z in *.zip; do unzip $z; done - apt-get install -y ./*.deb && rm -vf *.deb + script: - 'sed -i "s/^Architecture:.*/Architecture: ${ARCH}/g" debian/control' - go run ./cmd/signaldctl doc -o man - go run ./cmd/signaldctl completion bash > debian/package.bash-completion @@ -74,15 +78,6 @@ test sqlite to postgres: - gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="$(./version.sh | cut -c2-)" - dpkg-buildpackage -us -uc -b - mv ../*.deb . - needs: - - project: signald/libraries/golang-github-mdp-qrterminal - job: build - ref: master - artifacts: true - - project: signald/libraries/golang-github-jedib0t-go-pretty - job: build - ref: master - artifacts: true variables: SIGNALDCTL_PUBLIC_DOC_MODE: "on" artifacts: