Skip to content

Commit

Permalink
update helm release gha to use GATI and config file (#11064)
Browse files Browse the repository at this point in the history
* update helm release gha to use GATI and config file

* add env to gha

* update aws-cred action to v3

* test

* run on push

* uncomment and remove test stuff
  • Loading branch information
momentmaker authored Oct 24, 2023
1 parent a632a91 commit b87571c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pages_branch: helm-release
packages_with_index: true
27 changes: 20 additions & 7 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,39 @@
name: Helm Publish

on:
pull_request:
types: [ labeled ]
workflow_dispatch:

jobs:
helm_release:
if: ${{ github.event.label.name == 'helm_release' }}
runs-on: ubuntu-latest
environment: build-develop
permissions:
id-token: write
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@50ac8dd1e1b10d09dac7b8727528b91bed831ac0 # v3.0.2
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN_GATI }}
role-duration-seconds: ${{ secrets.AWS_ROLE_DURATION_SECONDS }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Get Github Token
id: get-gh-token
uses: smartcontractkit/chainlink-github-actions/github-app-token-issuer@main
with:
url: ${{ secrets.GATI_LAMBDA_FUNCTION_URL }}

- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5

- name: Run chart-releaser
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
with:
charts_dir: charts
pages_branch: helm-release
mark_as_latest: false
packages_with_index: true
config: .github/cr.yaml
env:
CR_TOKEN: "${{ secrets.HELM_PUSH_TOKEN }}"
CR_TOKEN: "${{ steps.get-gh-token.outputs.access-token }}"

0 comments on commit b87571c

Please sign in to comment.