image: ruby:3.0.2 stages: - build - test - deploy before_script: - gem install bundler:2.2.22 - bundle install build_gem: stage: build script: - gem build rspec: stage: test script: - bundle exec rspec deploy: stage: deploy script: - gem push dri*.gem rules: - if: '$CI_COMMIT_TAG' when: always