Skip to content

Commit

Permalink
Change helm release process, rename chart
Browse files Browse the repository at this point in the history
* 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
scheibinger committed Apr 22, 2024
1 parent d1ebb8f commit 9ace3f5
Show file tree
Hide file tree
Showing 27 changed files with 88 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
69 changes: 69 additions & 0 deletions .github/workflows/crib-helm-chart-push-develop.yml
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 }}
41 changes: 0 additions & 41 deletions .github/workflows/helm-chart-publish.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: chainlink-cluster
description: Chainlink nodes cluster
version: 0.4.0
appVersion: "2.6.0"
name: crib-chainlink-cluster
description: Chainlink nodes cluster for Integration level testing
version: 0.5.0
appVersion: "2.10.0"
dependencies:
- name: mockserver
version: "5.14.0"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lintconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Copied from:
# https://redhat-cop.github.io/ci/linting-testing-helm-charts.html
# with `min-spaces-from-content` changed to be compatible with prettier.
target-branch: develop
check-version-increment: true
rules:
braces:
min-spaces-inside: 0
Expand Down

0 comments on commit 9ace3f5

Please sign in to comment.