From 92a56e0941ba887362b52134500be8042f505cbe Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Wed, 1 Feb 2023 19:59:46 +0000 Subject: [PATCH] chore: upgrade Gitea to v1.18.3 - Upgrade Gitea to v1.18.3. - Use alpine:3.17 as base for the Gitea docker image. - Download the Gitea binary from GitHub. --- .helpers/download-gitea.sh | 4 ++-- config | 2 +- templates/gitea/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.helpers/download-gitea.sh b/.helpers/download-gitea.sh index d49a1e6..bde1cc7 100644 --- a/.helpers/download-gitea.sh +++ b/.helpers/download-gitea.sh @@ -8,8 +8,8 @@ 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 + 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." diff --git a/config b/config index 4ab39e9..d8868a9 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 4ab39e99f55d17a884dd490af9bd47098a5b4b22 +Subproject commit d8868a93bb9d01c32ba37566016125d95a0f4192 diff --git a/templates/gitea/Dockerfile b/templates/gitea/Dockerfile index bac82d6..59af196 100644 --- a/templates/gitea/Dockerfile +++ b/templates/gitea/Dockerfile @@ -1,6 +1,6 @@ # This is a custom made Dockerfile for Gitea which is inspired from # the official Dockerfile.rootless from https://github.com/go-gitea/gitea/ -FROM alpine:3.16 +FROM alpine:3.17 ENV GITEA_WORK_DIR=${GITEA_WORK_DIR} \ GITEA_CUSTOM=${GITEA_CUSTOM} \