Skip to content
Snippets Groups Projects
Verified Commit 23268c3a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added CI script

parent e01e7f3b
No related branches found
No related tags found
No related merge requests found
Pipeline #4788 passed with stage
in 16 seconds
stages:
- deploy
pages:
stage: deploy
image: alpine
variables:
LATEST_VERSION_URL: https://docs.funkwhale.audio/latest.txt
before_script:
- apk add curl
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
- mkdir -p public
- cp install.sh public/
- cp install.sh public/index.html
- cp upgrade.sh public/upgrade.sh
artifacts:
paths:
- public
# only:
# - master@funkwhale/ansible
tags:
- docker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment