-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Heinen
committed
Nov 26, 2020
0 parents
commit 9cb2538
Showing
12 changed files
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: 🐛 Bug Report | ||
about: If something isn't working as expected 🤔. | ||
labels: "bug" | ||
--- | ||
|
||
### Gem version | ||
[Version of the gem where you are encountering the issue] | ||
|
||
### Rake version | ||
[Version of rake in your environment] | ||
|
||
### Platform Details | ||
[Operating system distribution and release version. Cloud provider if running in the cloud] | ||
|
||
### Scenario: | ||
[What you are trying to achieve and you can't?] | ||
|
||
### Steps to Reproduce: | ||
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this gem or any resources it includes?] | ||
|
||
### Expected Result: | ||
[What are you expecting to happen as the consequence of above reproduction steps?] | ||
|
||
### Actual Result: | ||
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: 🚀 Enhancement Request | ||
about: I have a suggestion (and may want to implement it 🙂)! | ||
labels: "new feature" | ||
--- | ||
|
||
### Describe the Enhancement: | ||
<!--- What you are trying to achieve that you can't? --> | ||
|
||
### Describe the Need: | ||
<!--- What kind of user do you believe would utilize this enhancement, and how many users might want this functionality --> | ||
|
||
### Current Alternative | ||
<!--- Is there a current alternative that you can utilize to workaround the lack of this enhancement --> | ||
|
||
### Can We Help You Implement This?: | ||
<!--- The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need. --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
### Description | ||
|
||
[Describe what this change achieves] | ||
|
||
### Issues Resolved | ||
|
||
[List any existing issues this PR resolves] | ||
|
||
### Check List | ||
|
||
- [ ] New functionality has been documented in the README if applicable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Ruby Gem | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
name: Build + Publish | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.6 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6.x | ||
|
||
- name: Install necessary gems | ||
run: | | ||
gem install rotp -v 5.1.0 --no-document | ||
- name: prepare credentials | ||
run: | | ||
mkdir -p $HOME/.gem | ||
touch $HOME/.gem/credentials | ||
chmod 0600 $HOME/.gem/credentials | ||
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials | ||
env: | ||
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} | ||
|
||
- name: build gem | ||
run: | | ||
gem build *.gemspec | ||
- name: generateotp | ||
run: echo "::set-env name=OTPTOKEN::$(rotp --secret ${GEM_HOST_OTP_SECRET})" | ||
env: | ||
GEM_HOST_OTP_SECRET: ${{secrets.RUBYGEMS_OTP_SECRET}} | ||
|
||
- name: publish | ||
run: | | ||
gem push *.gem --otp ${{ env.OTPTOKEN }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Linting | ||
|
||
on: push | ||
|
||
jobs: | ||
lint: | ||
name: Lint code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.6 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6.x | ||
|
||
- name: Install necessary gems | ||
run: bundle install --with=development | ||
|
||
- name: Run Markdown Linting | ||
uses: actionshub/markdownlint@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules "~MD013" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## Version 0.0.1 | ||
|
||
- Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# custom_raketasks | ||
|
||
## Summary | ||
|
||
Placeholder Gem for custom Rake tasks. | ||
|
||
## Intention | ||
|
||
This gem does not contain any functionality, but is intended | ||
to be overridden by internally-served gems of the same name. | ||
|
||
Just deploy your own Rake tasks as `custom_raketasks` on an internal | ||
RubyGems repository and be safe of naming and versioning conflicts | ||
as it will never hit a version 0.1.0 or higher. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Gem::Specification.new do |spec| | ||
spec.name = 'custom_raketasks' | ||
spec.version = '0.0.1' | ||
spec.license = 'Apache-2.0' | ||
|
||
spec.summary = 'Placeholder for customer-specific rake tasks' | ||
spec.description = 'No functionality' | ||
spec.authors = ['tecRacer Opensource'] | ||
spec.email = ['[email protected]'] | ||
spec.homepage = 'https://github.com/tecracer-chef/custom_raketasks' | ||
|
||
spec.files = ['README.md'] | ||
|
||
spec.required_ruby_version = '>= 2.0' | ||
|
||
spec.post_install_message = <<~MESSAGE | ||
This is a placeholder for customer-specific Chef Cookstyle rules. | ||
It serves the purpose of allowing internal style rules for Cookstyle | ||
with the same name to keep implementation generic. | ||
If you are seeing this message, you probably have not deployed a | ||
customized raketask gem into your internal RubyGems repository yet. | ||
MESSAGE | ||
end |