Skip to content

Commit

Permalink
Add shipit release pipeline
Browse files Browse the repository at this point in the history
Introduce release shipit pipeline.
It checks if the tag exists and then allow to deploy.
  • Loading branch information
miry committed Mar 17, 2022
1 parent 0677266 commit f940fae
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vendor/
.bundle
Gemfile.lock
*.gem
Gemfile.lock
pkg/
vendor/
9 changes: 5 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
source "https://rubygems.org"
gemspec

gem "bundler"
gem "minitest"
gem "rake"
gem "webmock"
group :test do
gem "minitest"
gem "rake"
gem "webmock"
end
8 changes: 8 additions & 0 deletions scripts/pre_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

tag=$(git tag --contains HEAD | wc -l)

if [ $tag == "0" ] ; then
echo "No tag attached!"
exit 1
fi
11 changes: 11 additions & 0 deletions shipit.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

dependencies:
bundler:
without:
- test

deploy:
max_commits: 1
pre:
- ./scripts/pre_release
4 changes: 0 additions & 4 deletions shipit.rubygems.yml

This file was deleted.

0 comments on commit f940fae

Please sign in to comment.