Skip to content

Commit

Permalink
added push helm char to s3 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jgz committed Sep 29, 2021
1 parent be6293a commit 3dd5f6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ecr-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Publish AWS ECR
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ECR_REGISTRY=<aws-account-id>.dkr.ecr.<aws-region>.amazonaws.com
# S3_HELM_REPO=s3://s3-helm-repo-bucket

# you also need to create the repo's in ECR for the image and chart.

Expand Down Expand Up @@ -112,13 +113,14 @@ jobs:
helm package $TMPDIR -d charts/
- name: Publish Chart to ECR
- name: Publish Chart to ECR and S3
env:
VERSION: ${{ steps.meta.outputs.version }}
REPO: ${{ steps.dotenv.outputs.repo }}
REGISTRY: ${{ secrets.ECR_REGISTRY }}/
NAME: ${{ steps.dotenv.outputs.project_name }}
HOST: ${{ steps.dotenv.outputs.project_host }}
HELM_REPO: ${{ secrets.S3_HELM_REPO }}
HELM_EXPERIMENTAL_OCI: 1
run: |
aws ecr get-login-password \
Expand All @@ -128,6 +130,11 @@ jobs:
chart=charts/$NAME-chart-$VERSION.tgz
helm push $chart oci://$REGISTRY
helm plugin install https://github.com/hypnoglow/helm-s3.git
helm repo add $HELM_REPO
helm s3 push --relative $chart $HELM_REPO
# charts/${{ steps.dotenv.outputs.project_name }}-chart-${{ steps.meta.outputs.version }}.tgz
Expand Down

0 comments on commit 3dd5f6e

Please sign in to comment.