feat(gitea): add mkt-gitea-package task
All checks were successful
Cadoles/mktools/pipeline/head This commit looks good

This commit is contained in:
wpetit 2025-01-08 10:50:06 +01:00
parent 6fb016ed92
commit aa0a4afffb

View File

@ -35,4 +35,26 @@ tools/gitea-release/bin/gitea-release.sh:
mkdir -p tools/gitea-release/bin
curl --output tools/gitea-release/bin/gitea-release.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-release.sh
chmod +x tools/gitea-release/bin/gitea-release.sh
grep -qF -- "tools/" ".gitignore" 2>/dev/null || echo "tools/" >> ".gitignore"
MKT_GITEA_PACKAGE_PROJECT ?=
MKT_GITEA_PACKAGE_ORG ?=
MKT_GITEA_PACKAGE_BASE_URL ?= https://forge.cadoles.com
MKT_GITEA_PACKAGE_USERNAME ?=
MKT_GITEA_PACKAGE_USERNAME ?=
mkt-gitea-package: tools/gitea-package/bin/gitea-package.sh
GITEA_PACKAGE_PROJECT="$(MKT_GITEA_PACKAGE_PROJECT)" \
GITEA_PACKAGE_ORG="$(MKT_GITEA_PACKAGE_ORG)" \
GITEA_PACKAGE_BASE_URL="$(MKT_GITEA_PACKAGE_BASE_URL)" \
GITEA_PACKAGE_FILE="$(MKT_GITEA_PACKAGE_FILE)" \
GITEA_PACKAGE_USERNAME="$(MKT_GITEA_PACKAGE_USERNAME)" \
GITEA_PACKAGE_PASSWORD="$(MKT_GITEA_PACKAGE_PASSWORD)" \
tools/gitea-package/bin/gitea-package.sh
tools/gitea-package/bin/gitea-package.sh:
mkdir -p tools/gitea-package/bin
curl --output tools/gitea-package/bin/gitea-package.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-package.sh
chmod +x tools/gitea-package/bin/gitea-package.sh
grep -qF -- "tools/" ".gitignore" 2>/dev/null || echo "tools/" >> ".gitignore"