-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update helm release gha to use GATI and config file (#11064)
* 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
1 parent
a632a91
commit b87571c
Showing
2 changed files
with
22 additions
and
7 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,2 @@ | ||
pages_branch: helm-release | ||
packages_with_index: true |
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 |
---|---|---|
@@ -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 }}" |