diff --git a/tasks/gitea.mk b/tasks/gitea.mk index d6717ad..b5c2f12 100644 --- a/tasks/gitea.mk +++ b/tasks/gitea.mk @@ -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" \ No newline at end of file