feat: support non-binary gems
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ace5a925f4
commit
f65aa714f4
1 changed files with 9 additions and 2 deletions
|
@ -14,11 +14,18 @@ source /etc/os-release
|
|||
# rolling.arch.gems.sutty.nl
|
||||
# 18.04.ubuntu.gems.sutty.nl
|
||||
OS_VERSION="$(os-version)"
|
||||
RUBY_GEMS="${OS_VERSION}.${ID}.gems.${SUTTY}"
|
||||
RUBY_GEMS="https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@${OS_VERSION}.${ID}.gems.${SUTTY}"
|
||||
|
||||
cd cache/
|
||||
gem fetch --source=https://rubygems.org --platform=ruby --version ${GEM_VERSION} ${GEM_NAME}
|
||||
|
||||
cd ../gems/
|
||||
gem compile -V --prune --strip "strip --strip-unneeded" ${GEM_COMPILER_FLAGS} "../cache/${GEM_NAME}-${GEM_VERSION}.gem"
|
||||
gem inabox -o "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem" --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@${RUBY_GEMS}
|
||||
|
||||
if test -f "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem"; then
|
||||
gem inabox -o "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem" --host "${RUBY_GEMS}"
|
||||
fi
|
||||
|
||||
if test -f "${GEM_NAME}-${GEM_VERSION}.gem"; then
|
||||
gem inabox -o "${GEM_NAME}-${GEM_VERSION}.gem" --host "${RUBY_GEMS}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue