Skip to content

Commit

Permalink
- helm v3 chart
Browse files Browse the repository at this point in the history
- fixed helm chart indexing script
  • Loading branch information
t83714 committed Apr 27, 2020
1 parent 580025f commit c6a1516
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn test
- name: helm-check
uses: igabaydulin/[email protected]
env:
CHART_LOCATION: ./deploy/magda-project-open-data-connector
CHART_VALUES: ./deploy/test-deploy.yaml

- name: Setup Helm
uses: azure/setup-helm@v1
with:
version: v3.2.0

- run: yarn helm-lint

- name: Login to GitHub Package Repository
env:
GH_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn test
- name: helm-check
uses: igabaydulin/[email protected]
env:
CHART_LOCATION: ./deploy/magda-project-open-data-connector
CHART_VALUES: ./deploy/test-deploy.yaml

- name: Setup Helm
uses: azure/setup-helm@v1
with:
version: v3.2.0

- run: yarn helm-lint

- name: Login to GitHub Package Repository
env:
Expand All @@ -48,11 +50,6 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Setup Helm
uses: azure/setup-helm@v1
with:
version: v2.16.1

- name: Setup AWS CLi Tools
uses: chrislennon/[email protected]

Expand All @@ -62,10 +59,12 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
echo "Sync with existing charts repo in s3..."
mkdir -p chart-repo
aws s3 sync s3://magda-charts/ chart-repo
helm package ./deploy/${REPO_NAME} -d chart-repo --save=false
helm repo index chart-repo
echo "Releasing charts to s3..."
aws s3 sync chart-repo s3://magda-charts/ --acl public-read
cd deploy
mkdir -p sync_dir
mkdir -p index_dir
if ! aws s3 cp s3://magda-charts/index.yaml index_dir/index.yaml; then echo "failed to copy current repo index" && exit 1; fi
helm package -d sync_dir ${REPO_NAME}
helm repo index --merge "index_dir/index.yaml" sync_dir
mv -f sync_dir/index.yaml index_dir/index.yaml
aws s3 sync sync_dir s3://magda-charts/ --acl public-read
aws s3 cp index_dir/index.yaml s3://magda-charts/index.yaml --acl public-read
3 changes: 2 additions & 1 deletion deploy/magda-project-open-data-connector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
apiVersion: v2
name: magda-project-open-data-connector
description: A Helm chart for Magda Project Open Data Connector
version: "0.0.57-0"
kubeVersion: ">= 1.14.0-0"
home: "https://github.com/magda-io/magda-project-open-data-connector"
sources: ["https://github.com/magda-io/magda-project-open-data-connector"]

0 comments on commit c6a1516

Please sign in to comment.