From de86761b09f2bd754dd206fbe3ab41fc2547cc33 Mon Sep 17 00:00:00 2001 From: Gus Vine Date: Wed, 15 Feb 2023 16:46:07 +1100 Subject: [PATCH 1/2] add cloudformation liststack permissions --- lib/ciinabox/templates/default.config.yaml.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ciinabox/templates/default.config.yaml.tt b/lib/ciinabox/templates/default.config.yaml.tt index d5b1284..d422408 100644 --- a/lib/ciinabox/templates/default.config.yaml.tt +++ b/lib/ciinabox/templates/default.config.yaml.tt @@ -477,6 +477,7 @@ jenkins: - cloudformation:DescribeChangeSet - cloudformation:DescribeStackEvents - cloudformation:DescribeStacks + - cloudformation:ListStacks - cloudformation:DescribeStackResource - cloudformation:DescribeStackResources - cloudformation:ExecuteChangeSet From c0bf32902e260bb3d16039004ace3df84a4e6a48 Mon Sep 17 00:00:00 2001 From: Guslington Date: Wed, 22 Feb 2023 09:50:13 +1100 Subject: [PATCH 2/2] update github actions --- .github/workflows/build-gem.yml | 11 +++++++---- .github/workflows/push.yml | 8 ++++---- .github/workflows/release-gem.yml | 10 ++++------ .github/workflows/release-image.yml | 12 ++++-------- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-gem.yml b/.github/workflows/build-gem.yml index 49cec16..9cfee49 100644 --- a/.github/workflows/build-gem.yml +++ b/.github/workflows/build-gem.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 914d534..d79788d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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/github-slug-action@v3.x - 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 diff --git a/.github/workflows/release-gem.yml b/.github/workflows/release-gem.yml index a021019..a9c4e02 100644 --- a/.github/workflows/release-gem.yml +++ b/.github/workflows/release-gem.yml @@ -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 diff --git a/.github/workflows/release-image.yml b/.github/workflows/release-image.yml index bd62ebb..a6ec8ed 100644 --- a/.github/workflows/release-image.yml +++ b/.github/workflows/release-image.yml @@ -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