-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed helm chart indexing script
- Loading branch information
Showing
3 changed files
with
26 additions
and
23 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 |
---|---|---|
|
@@ -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 }} | ||
|
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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|
||
|
@@ -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 |
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 |
---|---|---|
@@ -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"] |