Skip to content

Commit

Permalink
Merge pull request #26 from base2Services/feature/cfn-liststacks
Browse files Browse the repository at this point in the history
add cloudformation liststack permissions
  • Loading branch information
Guslington authored Feb 21, 2023
2 parents f2f8f9c + c0bf329 commit 858b09c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up ruby 2.7
uses: actions/setup-ruby@v1
- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.x
ruby-version: 2.7


- name: rspec
run: |
gem install rspec
rspec
- name: build gem
run: |
gem build ciinabox.gemspec
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ jobs:

steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Inject slug/short variables
uses: rlespinasse/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Repository
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PUSH_TOKEN }}

- name: Build and push Container Image to GitHub Container Repository
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.x
ruby-version: 2.7

- name: Publish Gem to Github Packages Respository
- name: Publish gem to Github packages
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Repository
uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PUSH_TOKEN }}

- name: Build and push Container Image to GitHub Container Repository
uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
Expand Down
1 change: 1 addition & 0 deletions lib/ciinabox/templates/default.config.yaml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ jenkins:
- cloudformation:DescribeChangeSet
- cloudformation:DescribeStackEvents
- cloudformation:DescribeStacks
- cloudformation:ListStacks
- cloudformation:DescribeStackResource
- cloudformation:DescribeStackResources
- cloudformation:ExecuteChangeSet
Expand Down

0 comments on commit 858b09c

Please sign in to comment.