Skip to content

Commit

Permalink
Merge branch '5-job-failed-5344118317' into 'master'
Browse files Browse the repository at this point in the history
Update file .gitlab-ci.yml

Closes lunardial#5

See merge request ooto-me/fluent-plugin-parser-cef!2
  • Loading branch information
satoaki-ooto committed Oct 21, 2023
2 parents b70f5ad + 0f0ee82 commit 20e23f3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
image: ruby:2.7-bullseye

before_script:
- gem install bundler
- bundle install
- mkdir ~/.gem
- echo "---" > ~/.gem/credentials
- |
echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/rubygems: '${CI_JOB_TOKEN}'" >> ~/.gem/credentials
- chmod 0600 ~/.gem/credentials # rubygems requires 0600 permissions on the credentials file

test:
stage: test
before_script:
- gem install bundler
- bundle install
script:
- bundle exec rspec
rules:
Expand All @@ -21,6 +15,11 @@ test:
when: always

deploy:
before_script:
- echo "---" > ~/.gem/credentials
- |
echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/rubygems: '${CI_JOB_TOKEN}'" >> ~/.gem/credentials
- chmod 0600 ~/.gem/credentials # rubygems requires 0600 permissions on the credentials file
script:
- gem build my_gem
- gem push my_gem-0.0.1.gem --host ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/rubygems
Expand Down

0 comments on commit 20e23f3

Please sign in to comment.