Skip to content

Commit

Permalink
Merge pull request #472 from HewlettPackard/release_versioning
Browse files Browse the repository at this point in the history
Update dockerimage.yml
  • Loading branch information
chebroluharika authored Nov 6, 2020
2 parents 7054042 + f01f675 commit 8872346
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,19 @@ on:
types:
- created
jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Check out code
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Set Credentials
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n:rubygems_api_key: Bearer ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
steps:
- uses: actions/checkout@v1
name: Checkout code
- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
- name: Publish to RubyGems
run: |
gem build *.gemspec
gem push --KEY rubygems_api_key *.gem
RELEASE_COMMAND: rake release
- run: |
echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- name: Login to Docker Hub
Expand Down

0 comments on commit 8872346

Please sign in to comment.