From a87c579a39e4b6ed6505f572c7da78ae05ba6b8e Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Fri, 24 Jun 2022 16:20:46 +0200 Subject: [PATCH] gitlabci: github: fix release job Signed-off-by: Arthur Outhenin-Chalandre --- .github/workflows/goreleaser.yaml | 1 + .gitlab-ci.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 1fa9f8b..fcc8d22 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -22,6 +22,7 @@ jobs: - name: Install ceph run: | wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add - + source /etc/os-release echo "deb https://download.ceph.com/debian-pacific/ ${VERSION_CODENAME} main" | sudo tee /etc/apt/sources.list.d/ceph.list sudo apt-get update sudo apt-get install -y libcephfs-dev librbd-dev librados-dev diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4393ba..96746ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,13 +85,14 @@ release: image: name: goreleaser/goreleaser:v1.9.2 entrypoint: [''] - extends: .install_ceph only: - tags variables: # Disable shallow cloning so that goreleaser can diff between tags to # generate a changelog. GIT_DEPTH: 0 + before_script: + - apk add ceph-dev script: - apk add gpg-agent - gpg --import < $GPG_PRIVATE_KEY_FILE