Compare commits

...

7 commits

Author SHA1 Message Date
f f07ca799bc fetch remote versions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
the default strategy was preventing fetching newer gems
2022-03-19 13:56:08 -03:00
f 6a2fd50da8 inconsistent flag naming across ruby
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-03-15 20:50:40 -03:00
f 4b620eb837 gem versions in matrix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-03-15 18:57:24 -03:00
f d57bf8cf9d woodpecker linter 2022-03-15 18:35:47 -03:00
f 959f2a49f4 we can't upgrade alpine just yet
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-03-15 18:30:48 -03:00
f 1fa145577d listen on ipv6 and make sure the port is 9292 2022-03-15 18:30:20 -03:00
f 5fae93466e stop! 2022-03-15 18:26:03 -03:00
3 changed files with 22 additions and 28 deletions

View file

@ -1,39 +1,31 @@
pipeline:
publish:
image: plugins/docker
registry: registry.nulo.in
repo: registry.nulo.in/sutty/geminabox
tags:
- ${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
- latest
build_args:
- RUBY_VERSION=${RUBY_VERSION}
- RUBY_PATCH=${RUBY_PATCH}
- NIO4R_VERSION=${NIO4R_VERSION}
- PUMA_VERSION=${PUMA_VERSION}
- HIREDIS_VERSION=${HIREDIS_VERSION}
- ALPINE_VERSION=${ALPINE_VERSION}
- BASE_IMAGE=registry.nulo.in/sutty/ruby
username: sutty
settings:
registry: registry.nulo.in
repo: registry.nulo.in/sutty/geminabox
tags:
- ${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
- latest
build_args:
- RUBY_VERSION=${RUBY_VERSION}
- RUBY_PATCH=${RUBY_PATCH}
- NIO4R_VERSION=${NIO4R_VERSION}
- PUMA_VERSION=${PUMA_VERSION}
- HIREDIS_VERSION=${HIREDIS_VERSION}
- ALPINE_VERSION=${ALPINE_VERSION}
- BASE_IMAGE=registry.nulo.in/sutty/ruby
username: sutty
secrets:
- docker_password
when:
branch: antifascista
event: push
matrix:
NIO4R_VERSION: 2.5.8
PUMA_VERSION: 5.6.2
HIREDIS_VERSION: 0.6.3
include:
- ALPINE_VERSION: 3.13.6
RUBY_VERSION: 2.7
RUBY_PATCH: 5
- ALPINE_VERSION: 3.13.7
RUBY_VERSION: 2.7
RUBY_PATCH: 5
- ALPINE_VERSION: 3.14.3
RUBY_VERSION: 2.7
RUBY_PATCH: 5
- ALPINE_VERSION: 3.15.0
RUBY_VERSION: 3.0
RUBY_PATCH: 3
NIO4R_VERSION: 2.5.8
PUMA_VERSION: 5.6.2
HIREDIS_VERSION: 0.6.3

View file

@ -5,6 +5,8 @@ require 'securerandom'
Geminabox.data = '/srv/gems'
Geminabox.rubygems_proxy = true
Geminabox.allow_remote_failure = true
Geminabox.build_legacy = false
Geminabox.rubygems_proxy_merge_strategy = :combine_local_and_remote_gem_versions
# https://github.com/geminabox/geminabox/wiki/Http-Basic-Auth
Geminabox::Server.helpers do

View file

@ -15,9 +15,9 @@ chown -R ruby:www-data ${dir}
case $1 in
start)
rm -f ${pid}
daemonize -p ${pid} -l ${pid} -c ${dir} -u ruby /usr/bin/bundle exec rackup
daemonize -p ${pid} -l ${pid} -c ${dir} -u ruby /usr/bin/bundle exec rackup -o :: -p 9292
;;
start)
stop)
test ! -f ${pid} || cat ${pid} | xargs -r kill
rm -f ${pid}
;;