Skip to content

Commit

Permalink
Feat: Add Workflows (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
damacus authored Feb 17, 2024
1 parent 8c154d6 commit 1a4f418
Show file tree
Hide file tree
Showing 18 changed files with 732 additions and 537 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ name: 'Test'

jobs:
lint-unit:
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@v0.1.2
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: release-please

"on":
push:
branches: [main]

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: ruby
package-name: kitchen-rackspace
version-file: lib/kitchen/driver/rackspace_version.rb
token: ${{ secrets.PORTER_GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Build and publish to GitHub Package
uses: actionshub/publish-gem-to-github@main
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ secrets.OWNER }}

- name: Build and publish to RubyGems
uses: actionshub/publish-gem-to-rubygems@main
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{ secrets.RUBYGEMS_API_KEY }}
15 changes: 9 additions & 6 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
MD012: false
MD013: false
MD024: false
MD036: false

---
default: true
MD013: false
MD024: false
MD026: false
MD036: false
MD012: false
MD029: false
MD004: false
2 changes: 0 additions & 2 deletions .mdlrc

This file was deleted.

22 changes: 10 additions & 12 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Allow additional lines until main driver class can be split
# into smaller classes.
---
require:
- chefstyle

ClassLength:
Max: 131
AbcSize:
Max: 20
MethodLength:
Max: 15
Metrics/BlockLength:
Max: 600
Metrics/LineLength:
Max: 100
AllCops:
TargetRubyVersion: 3.1
Include:
- "**/*.rb"
Exclude:
- "vendor/**/*"
- "spec/**/*"
148 changes: 74 additions & 74 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,164 +1,164 @@
# Unreleased
# Kitchen-rackspace Changelog

# 0.21.0 / 2016-05-31
## 0.21.0 / 2016-05-31

* PR [#67][] - Update image IDS; via [@martinb3][]
* PR [#65][] - Add Ubuntu 16.04; via [@coderanger][]
* PR [#67] - Update image IDS; via [@martinb3]
* PR [#65] - Add Ubuntu 16.04; via [@coderanger]

# 0.20.0 / 2016-01-15
## 0.20.0 / 2016-01-15

* PR [#63][] - Update image IDs, add Ubuntu 15.10, drop Ubuntu 15.04; via
[@martinb3][]
* PR [#63] - Update image IDs, add Ubuntu 15.10, drop Ubuntu 15.04; via
[@martinb3]

# 0.19.0 / 2015-10-06
## 0.19.0 / 2015-10-06

* PR [#60][] - Update to latest image IDs
* PR [#57][] - Add `servicelevel_wait` option; via [@martinb3][]
* PR [#56][] - Add `no_passwd_lock` option; via [@martinb3][]
* PR [#60] - Update to latest image IDs
* PR [#57] - Add `servicelevel_wait` option; via [@martinb3]
* PR [#56] - Add `no_passwd_lock` option; via [@martinb3]

# 0.18.0 / 2015-08-28
## 0.18.0 / 2015-08-28

* PR [#53][] - Update image IDs, update Arch to 2015.7, drop Fedora 20, add
Fedora 22, update Gentoo to 15.3, update Vyatta to 6.7R9; via [@martinb3][]
* PR [#53] - Update image IDs, update Arch to 2015.7, drop Fedora 20, add
Fedora 22, update Gentoo to 15.3, update Vyatta to 6.7R9; via [@martinb3]

# 0.17.0 / 2015-05-15
## 0.17.0 / 2015-05-15

* PR [#51][] - Update image IDS--add Debian 8, drop Debian 6, add Ubuntu 15.04,
* PR [#51] - Update image IDS--add Debian 8, drop Debian 6, add Ubuntu 15.04,
drop Ubuntu 14.10

# 0.16.0 / 2015-04-15
## 0.16.0 / 2015-04-15

* PR [#50][] - Update image IDs, support 'centos-7.0' in addition to
'centos-7'; via [@martinb3][]
* PR [#50] - Update image IDs, support 'centos-7.0' in addition to
'centos-7'; via [@martinb3]

# 0.15.1 / 2015-04-03
## 0.15.1 / 2015-04-03

* PR [#49][] - Update image IDs, re-add CentOS point release numbers; via
[@martinb3][]
* PR [#49] - Update image IDs, re-add CentOS point release numbers; via
[@martinb3]

# 0.15.0 / 2015-04-02
## 0.15.0 / 2015-04-02

* PR [#48][] - Drop references to retired Ubuntu 10.04 image
* PR [#46][] - Update all image IDs, add Scientific 7, remove references to
point releases that Rackspace no longer uses in image names; via [@martinb3][]
* PR [#48] - Drop references to retired Ubuntu 10.04 image
* PR [#46] - Update all image IDs, add Scientific 7, remove references to
point releases that Rackspace no longer uses in image names; via [@martinb3]

# 0.14.0 / 2014-12-09
## 0.14.0 / 2014-12-09

* PR [#45][] - Add Ubuntu 14.10 and Fedora 21
* PR [#44][] - Update all image IDs, add CentOS/Red Hat 5.11 and Red Hat 6.6,
update Vyatta to 6.7R4; via [@martinb3][]
* PR [#45] - Add Ubuntu 14.10 and Fedora 21
* PR [#44] - Update all image IDs, add CentOS/Red Hat 5.11 and Red Hat 6.6,
update Vyatta to 6.7R4; via [@martinb3]

# 0.13.0 / 2014-10-08
## 0.13.0 / 2014-10-08

### Improvements

* PR [#43][] - Update all image IDs, bump Arch to 2014.10, Gentoo to 14.4,
* PR [#43] - Update all image IDs, bump Arch to 2014.10, Gentoo to 14.4,
Vyatta to 6.7
* PR [#42][] - Update CentOS 7 image ID; via [@marcoamorales][]
* PR [#42] - Update CentOS 7 image ID; via [@marcoamorales]

# 0.12.0 / 2014-09-10
## 0.12.0 / 2014-09-10

### New Features

* PR [#41][] - Support optionally using ServiceNet for SSH access, via
[@steve-jansen][]
* PR [#41] - Support optionally using ServiceNet for SSH access, via
[@steve-jansen]

# 0.11.0 / 2014-09-04
## 0.11.0 / 2014-09-04

### Improvements

* PR [#40][] - Port the server name generator from the OpenStack/DigitalOcean
* PR [#40] - Port the server name generator from the OpenStack/DigitalOcean
drivers, with all its bug fixes; update image IDs

# 0.10.0 / 2014-08-28
## 0.10.0 / 2014-08-28

### Improvements

* PR [#39][] - Update image ID list
* PR [#38][] - Recognize `debian-7.6` image name, via [@martinb3][]
* PR [#39] - Update image ID list
* PR [#38] - Recognize `debian-7.6` image name, via [@martinb3]

# 0.9.0 / 2014-08-25
## 0.9.0 / 2014-08-25

### Improvements

* PR [#37][] - Update image ID list
* PR [#36][] - Add CentOS 7 to the recognized images, via [@hhoover][]
* PR [#37] - Update image ID list
* PR [#36] - Add CentOS 7 to the recognized images, via [@hhoover]

# 0.8.0 / 2014-08-20
## 0.8.0 / 2014-08-20

### New Features

* PR [#35][] - Add option to wait on RackConnect, via [@martinb3][]
* PR [#35] - Add option to wait on RackConnect, via [@martinb3]

# 0.7.0 / 2014-07-09
## 0.7.0 / 2014-07-09

### New Features

* PR [#31][] - Support attaching to custom networks, via [@kanerogers][]
* PR [#29][] - Support using a sleep instead of TCP check in cases where new
servers might fail the TCP; via [@martinb3][]
* PR [#31] - Support attaching to custom networks, via [@kanerogers]
* PR [#29] - Support using a sleep instead of TCP check in cases where new
servers might fail the TCP; via [@martinb3]

# 0.6.1 / 2014-06-03
## 0.6.1 / 2014-06-03

### Bug Fixes

* PR [#26][] - Fix issue with builds failing due to a timeout set at 0
* PR [#26] - Fix issue with builds failing due to a timeout set at 0

# 0.6.0 / 2014-05-13
## 0.6.0 / 2014-05-13

### New Features

* PR [#25][] - Allow overridding of Fog's default timeout; via [@pezholio][]
* PR [#25] - Allow overridding of Fog's default timeout; via [@pezholio]

### Improvements

* PR [#24][] - Error out immediately when trying to install in Ruby 1.8
* PR [#24] - Error out immediately when trying to install in Ruby 1.8

# 0.5.0 / 2014-05-01
## 0.5.0 / 2014-05-01

### Improvements

* PR [#23][] - Switch to PVHVM images, where available
* PR [#22][] - Update all the images with new IDs
* PR [#21][] - Add Ubuntu 14.04 to the list of known images; via [@pezholio][]
* PR [#23] - Switch to PVHVM images, where available
* PR [#22] - Update all the images with new IDs
* PR [#21] - Add Ubuntu 14.04 to the list of known images; via [@pezholio]

# 0.4.0 / 2014-01-27
## 0.4.0 / 2014-01-27

### New Features

* PR [#17][] - Support the common TK platform name style, e.g. `centos-6`,
via [@coderanger][]
* PR [#17][] - Support environment variables for username and API key, via
[@coderanger][]
* PR [#17] - Support the common TK platform name style, e.g. `centos-6`,
via [@coderanger]
* PR [#17] - Support environment variables for username and API key, via
[@coderanger]

### Improvements

* PR [#17][] - Change default flavor to lowest performance flavor for faster
boot times, via [@coderanger][]
* PR [#17] - Change default flavor to lowest performance flavor for faster
boot times, via [@coderanger]

# 0.3.0 / 2013-12-07
## 0.3.0 / 2013-12-07

### Improvements

* Tested against, and working with, Test Kitchen 1.1.0

### Bug Fixes

* PR [#15][] - Update default `image_id` to a current one
* PR [#15][] - Fix collision with TK 1.x; change `name` option to `server_name`
* PR [#15] - Update default `image_id` to a current one
* PR [#15] - Fix collision with TK 1.x; change `name` option to `server_name`

# 0.2.0 / 2013-05-11
## 0.2.0 / 2013-05-11

### New Features

* PR [#8][] - Support `rackspace_region:` option; at request of [@claco][]
* PR [#8] - Support `rackspace_region:` option; at request of [@claco]

### Improvements

* PR [#7][] - Clean up/refactor to pass style checks
* PR [#9][] - Add some (probably overkill) RSpec tests
* PR [#7] - Clean up/refactor to pass style checks
* PR [#9] - Add some (probably overkill) RSpec tests

# 0.1.0 / 2013-03-12
## 0.1.0 / 2013-03-12

* Initial release! Woo!

Expand Down
13 changes: 11 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in kitchen-rackspace.gemspec
gemspec

group :test do
gem "bundler"
gem "rake"
gem "rspec", "~> 3.2"
end

group :chefstyle do
gem "chefstyle", "~> 2.2", ">= 2.2.3"
end
Loading

0 comments on commit 1a4f418

Please sign in to comment.