Skip to content

Commit

Permalink
uncomment rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
meghaniankov committed Jan 9, 2024
1 parent ccb1bd2 commit 5c5e640
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ jobs:
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: false
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: false
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: "TERRAFYING_VERSION=${{ github.ref_name }}"
7 changes: 3 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ end

desc 'Push gem to rubygems'
task :push do
sh("echo pkg/terrafying-#{terrafying_version}.gem")
# gem_config = { rubygems_api_key: rubygems_api_key }.to_yaml
# File.open('.gemconfig', 'w') { |file| file.write(gem_config) }
# sh("gem push --config-file .gemconfig pkg/terrafying-#{terrafying_version}.gem")
gem_config = { rubygems_api_key: rubygems_api_key }.to_yaml
File.open('.gemconfig', 'w') { |file| file.write(gem_config) }
sh("gem push --config-file .gemconfig pkg/terrafying-#{terrafying_version}.gem")
end

desc 'Update the version for terrafying to DRONE_TAG. (0.0.0 if DRONE_TAG not set)'
Expand Down

0 comments on commit 5c5e640

Please sign in to comment.