services/.helpers/download-gitea.sh
Dan Anglin ba9025d4d5
fix: update Gitea
- Upgrade Gitea to v1.18.0
- Update the configuration to allow signing merge commits
- Fixed download-gitea.sh
2023-01-16 19:48:20 +00:00

16 lines
721 B
Bash

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
export $(cat ./config/flow-platform-services.cfg | grep GITEA_VERSION | tr -d "\"")
if ! [ -f ./build/gitea/gitea-${GITEA_VERSION}-linux-amd64 ]; then
echo "Downloading Gitea ${GITEA_VERSION}..."
curl -sSL https://dl.gitea.io/gitea/${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64 -o ./build/gitea/gitea-${GITEA_VERSION}-linux-amd64
curl -sSL https://dl.gitea.io/gitea/${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64.sha256 -o ./build/gitea/gitea-${GITEA_VERSION}-linux-amd64.sha256
( cd ./build/gitea && sha256sum --check gitea-${GITEA_VERSION}-linux-amd64.sha256 )
else
echo "Gitea ${GITEA_VERSION} is already present."
fi