From d59203622eaa97191a59d8860dcacf5fd20ce5e9 Mon Sep 17 00:00:00 2001 From: morph027 Date: Thu, 4 Jun 2020 19:31:49 +0200 Subject: [PATCH] make sure gitea is an executable --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 916c474..b77d730 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,7 @@ package: - gem specific_install https://github.com/root360/fpm.git all_fixes - mkdir -p "${CI_PROJECT_DIR}/package_root/usr/bin" - curl -sL -o "${CI_PROJECT_DIR}/package_root/usr/bin/gitea" "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64" + - file --mime-type --brief "${CI_PROJECT_DIR}/package_root/usr/bin/gitea" | grep -q 'application/x-executable' - chmod +x "${CI_PROJECT_DIR}/package_root/usr/bin/gitea" - fpm --input-type dir