From 075b97fae832c82f6e696189219229b42f5ee25c Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Tue, 7 Jan 2020 09:57:17 +0100 Subject: [PATCH] WIP CI --- .gitlab-ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63bc02d..4216e4a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,30 @@ stages: + - test - deploy +variables: + LATEST_VERSION_URL: https://docs.funkwhale.audio/latest.txt + +test-install-script: + stage: test + image: debian:10 + script: + - | + echo "Retrieving latest version from $LATEST_VERSION_URL" + funkwhale_version=$(curl -sfL $LATEST_VERSION_URL || true) + if [ -z "$funkwhale_version" ]; then + echo "Could not retrieve latest version!" + exit 1 + fi + - echo "Latest version is $funkwhale_version" + - sed -i "0,/funkwhale_version_placeholder/{s/funkwhale_version_placeholder/$funkwhale_version/}" install.sh + - | + echo "Y Y Y Y Y" | bash ./install.sh + tags: + - docker pages: stage: deploy image: buildpack-deps - variables: - LATEST_VERSION_URL: https://docs.funkwhale.audio/latest.txt script: - | echo "Retrieving latest version from $LATEST_VERSION_URL" -- GitLab