Merge pull request #8601 from Rory-Z/master
ci: use action to update helm repo
This commit is contained in:
commit
995115d56f
|
@ -57,24 +57,24 @@ jobs:
|
||||||
-X POST \
|
-X POST \
|
||||||
-d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ github.ref_name }}\" }" \
|
-d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ github.ref_name }}\" }" \
|
||||||
${{ secrets.EMQX_IO_RELEASE_API }}
|
${{ secrets.EMQX_IO_RELEASE_API }}
|
||||||
- name: update repo.emqx.io
|
- uses: emqx/push-helm-action@v1
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release' && endsWith(github.repository, 'emqx') && matrix.profile == 'emqx'
|
||||||
run: |
|
with:
|
||||||
REF=${{ github.ref_name }}
|
charts_dir: "${{ github.workspace }}/deploy/charts/emqx"
|
||||||
case "$REF" in
|
version: ${{ github.ref_name }}
|
||||||
v*)
|
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
BOOL_FLAG_NAME="emqx_ce"
|
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
;;
|
aws_region: "us-west-2"
|
||||||
e*)
|
aws_bucket_name: "repos-emqx-io"
|
||||||
BOOL_FLAG_NAME="emqx_ee"
|
- uses: emqx/push-helm-action@v1
|
||||||
;;
|
if: github.event_name == 'release' && endsWith(github.repository, 'enterprise') && matrix.profile == 'emqx-ee'
|
||||||
esac
|
with:
|
||||||
curl --silent --show-error \
|
charts_dir: "${{ github.workspace }}/deploy/charts/emqx-ee"
|
||||||
-H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \
|
version: ${{ github.ref_name }}
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
-X POST \
|
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
-d "{\"ref\":\"v1.0.4\",\"inputs\":{\"version\": \"${{ github.ref_name }}\", \"${BOOL_FLAG_NAME}\": \"true\"}}" \
|
aws_region: "us-west-2"
|
||||||
"https://api.github.com/repos/emqx/emqx-ci-helper/actions/workflows/update_emqx_repos.yaml/dispatches"
|
aws_bucket_name: "repos-emqx-io"
|
||||||
- name: update homebrew packages
|
- name: update homebrew packages
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue