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