-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change helm release process, rename chart
* I need to rename chart as we have chainlink-cluster repo in the helm registry already. We need to rename crib related one so it won't override existing one. * Updated workflows for publishing chart to use common github action workflow
- Loading branch information
1 parent
d1ebb8f
commit 9ace3f5
Showing
27 changed files
with
88 additions
and
49 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
paths: | ||
- "charts/**" | ||
- ".github/workflows/helm-chart.yml" | ||
- ".github/workflows/crib-helm-chart.yml" | ||
|
||
jobs: | ||
ci-lint-helm-charts: | ||
|
@@ -15,23 +15,32 @@ jobs: | |
with: | ||
# chart testing inputs | ||
chart-testing-extra-args: "--lint-conf=lintconf.yaml" | ||
charts-dir: charts/chainlink-cluster | ||
charts-dir: charts/crib-chainlink-cluster | ||
# grafana inputs | ||
metrics-job-name: ci-lint-helm-charts | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
|
||
ci-kubeconform: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ci-kubeconform | ||
uses: smartcontractkit/.github/actions/ci-kubeconform@1ae8a9a984814c4daf50aa96f03be2cba0ef3fec # [email protected] | ||
with: | ||
# kubeform inputs | ||
charts-dir: charts/chainlink-cluster | ||
charts-dir: charts/crib-chainlink-cluster | ||
# grafana inputs | ||
metrics-job-name: ci-kubeconform | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
ci-build-charts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ci-build-charts | ||
uses: smartcontractkit/.github/actions/cicd-build-publish-charts@7ac9af09dda8c553593d2153a975b43b6958fa9f # [email protected] | ||
with: | ||
# grafana inputs | ||
metrics-job-name: ci-build-charts | ||
gc-basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_CLOUD_HOST }} |
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,69 @@ | ||
name: Helm Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- "charts/**" | ||
- ".github/workflows/crib-helm-chart.yml" | ||
- ".github/workflows/crib-helm-chart-push-develop.yml" | ||
jobs: | ||
helm_release: | ||
runs-on: ubuntu-latest | ||
environment: build-develop | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
|
||
- name: Configure aws credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN_GATI }} | ||
role-duration-seconds: ${{ secrets.AWS_ROLE_DURATION_SECONDS }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
mask-aws-account-id: true | ||
role-session-name: helm-publish.helm-release | ||
|
||
- name: Get Github Token | ||
id: get-gh-token | ||
uses: smartcontractkit/chainlink-github-actions/github-app-token-issuer@5874ff7211cf5a5a2670bb010fbff914eaaae138 # v2.3.12 | ||
with: | ||
url: ${{ secrets.GATI_LAMBDA_FUNCTION_URL }} | ||
|
||
ci-lint-charts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ci-lint-charts | ||
uses: smartcontractkit/.github/actions/ci-lint-charts@6b08487b176ef7cad086526d0b54ddff6691c044 # [email protected] | ||
with: | ||
# grafana inputs | ||
metrics-job-name: ci-lint-charts | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
cicd-build-publish-charts: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
actions: read | ||
steps: | ||
- name: cicd-build-publish-charts | ||
uses: smartcontractkit/.github/actions/cicd-build-publish-charts@5b1046c28343660ecb84844c6fa95a66d1cdb52e # [email protected] | ||
with: | ||
# general inputs | ||
charts-dir: chart | ||
publish: "true" | ||
# grafana inputs | ||
metrics-job-name: cicd-build-publish-charts | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
aws-role-arn: ${{ secrets.AWS_OIDC_IAM_ROLE_PUBLISH_CHART_PROD_ARN }} | ||
aws-account-number: ${{ secrets.AWS_ACCOUNT_ID_PROD }} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
charts/chainlink-cluster/Chart.yaml → charts/crib-chainlink-cluster/Chart.yaml
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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