Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnalru committed Aug 11, 2022
1 parent 6b176c0 commit 106fd42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ build:gem:
variables:
BUILDVERSION: ${CI_PIPELINE_ID}
script:
- bundle install --jobs=3 --path vendor/bundle && bundle package --all
- bundle config set --local path 'vendor/bundle'
- bundle install --jobs=3 && bundle package --all
- gem build `ls | grep gemspec` && gem install `ls | grep -e '.gem$'`
cache:
paths:
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# gitlab-janitor

<div align="center">

[![Gem Version](https://badge.fury.io/rb/gitlab-janitor.svg)](https://rubygems.org/gems/gitlab-janitor)
[![Gem](https://img.shields.io/gem/dt/gitlab-janitor.svg)](https://rubygems.org/gems/gitlab-janitor/versions)
[![YARD](https://badgen.net/badge/YARD/doc/blue)](http://www.rubydoc.info/gems/gitlab-janitor)

[![Docker Pulls](https://badgen.net/docker/pulls/rnds/gitlab-janitor?icon=docker&label=pulls)](https://hub.docker.com/r/rnds/gitlab-janitor/)
[![Docker Stars](https://badgen.net/docker/stars/rnds/gitlab-janitor?icon=docker&label=stars)](https://hub.docker.com/r/rnds/gitlab-janitor/)

Gitlab Janitor это утилита для автоматической очистки зависших и прошенных ресурсов при использовании Docker в `Gitlab` CI/CD. Проект вдохновлён утилитой [GitLab Runner Docker Cleanup](https://gitlab.com/gitlab-org/gitlab-runner-docker-cleanup).
</div>

Gitlab Janitor это утилита для автоматической очистки зависших и брошенных ресурсов при использовании Docker в `Gitlab` CI/CD. Проект вдохновлён утилитой [GitLab Runner Docker Cleanup](https://gitlab.com/gitlab-org/gitlab-runner-docker-cleanup).

---

Expand Down Expand Up @@ -160,4 +164,8 @@ docker run --rm \
-e VOLUME_DEADLINE="3d" \
-e IMAGE_DEADLINE="20d" \
rnds/gitlab-janitor:latest
```
```

## Лицензия / License

[MIT](./LICENSE)
2 changes: 1 addition & 1 deletion gitlab-janitor.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gitlab_janitor/version'

Gem::Specification.new 'gitlab-janitor' do |spec|
spec.version = ENV['BUILDVERSION'].to_i > 0 ? "#{Lusnoc::VERSION}.#{ENV['BUILDVERSION'].to_i}" : GitlabJanitor::VERSION
spec.version = ENV['BUILDVERSION'].to_i > 0 ? "#{GitlabJanitor::VERSION}.#{ENV['BUILDVERSION'].to_i}" : GitlabJanitor::VERSION
spec.authors = ['Samoilenko Yuri']
spec.email = ['[email protected]']
spec.description = spec.summary = 'GitLab Janitor is a tool to automatically manage stalled containers when using Docker.'
Expand Down

0 comments on commit 106fd42

Please sign in to comment.