Dan Anglin
92a56e0941
- Upgrade Gitea to v1.18.3. - Use alpine:3.17 as base for the Gitea docker image. - Download the Gitea binary from GitHub.
16 lines
775 B
Bash
16 lines
775 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://github.com/go-gitea/gitea/releases/download/v${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64 -o ./build/gitea/gitea-${GITEA_VERSION}-linux-amd64
|
|
curl -sSL https://github.com/go-gitea/gitea/releases/download/v${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
|