AWS Marketplace | Mirror: Camunda Helm chart #5
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
name: "AWS Marketplace | Mirror: Camunda Helm chart" | |
on: | |
workflow_dispatch: | |
inputs: | |
imageTag: | |
description: "The helm release version" | |
required: true | |
default: "8.3.3" | |
awsImageTag: | |
description: "The helm release version for aws" | |
required: true | |
default: "8.3.3-1" | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/aws-marketplace-ecr-login | |
with: | |
aws-role-arn: "arn:aws:iam::${{ secrets.DISTRO_CI_AWS_MPLACE_AWS_ACCOUNT_ID }}:role/GitHubAction-AssumeRoleWithAction" | |
aws-region: "us-east-1" | |
aws-marketplace-base-url: ${{ secrets.DISTRO_CI_AWS_MPLACE_BASE_URL }} | |
- run: | | |
aws ecr get-login-password --region us-east-1 | helm registry login --username AWS --password-stdin $MARKETPLACE_BASE_URL | |
env: | |
MARKETPLACE_BASE_URL: ${{ secrets.DISTRO_CI_AWS_MPLACE_BASE_URL }} | |
- name: add repo | |
run: helm repo add camunda "https://helm.camunda.io" | |
- name: add repo | |
run: helm repo update | |
- name: Pull the helm chart | |
run: helm pull camunda/camunda-platform --version $IMAGE_TAG | |
env: | |
IMAGE_TAG: ${{ inputs.imageTag }} | |
- name: Unpack the helm chart | |
run: tar -xzvf camunda-platform-*.tgz | |
- name: remove old tar | |
run: rm -rf camunda-platform-*.tgz | |
- name: copy license-manager into templates | |
run: cp aws-marketplace/license-manager/chart_preinstall_hook.yaml camunda-platform/templates/ | |
- name: replace chart version | |
run: 'sed -i "s/^version: .*/version: $IMAGE_TAG/" camunda-platform/Chart.yaml' | |
env: | |
IMAGE_TAG: ${{ inputs.awsImageTag }} | |
- name: copy first user password into templates | |
run: cp aws-marketplace/firstuser-password.yaml camunda-platform/templates/ | |
- name: package modified chart | |
run: helm package camunda-platform | |
- name: Push the docker image | |
run: helm push camunda-platform-$IMAGE_TAG.tgz oci://709825985650.dkr.ecr.us-east-1.amazonaws.com/camunda/camunda8 | |
env: | |
IMAGE_TAG: ${{ inputs.awsImageTag }} |