Merge pull request #11451 from id/0815-ci-do-not-publish-prerelease-artifacts

This commit is contained in:
Ivan Dyachkov 2023-08-15 21:45:06 +02:00 committed by GitHub
commit 3daff225c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -63,7 +63,8 @@ jobs:
./actionlint -color \ ./actionlint -color \
-shellcheck= \ -shellcheck= \
-ignore 'label ".+" is unknown' \ -ignore 'label ".+" is unknown' \
-ignore 'value "emqx-enterprise" in "exclude"' -ignore 'value "emqx-enterprise" in "exclude"' \
-ignore 'value "emqx-enterprise-elixir" in "exclude"'
- name: Check line-break at EOF - name: Check line-break at EOF
run: | run: |
./scripts/check-nl-at-eof.sh ./scripts/check-nl-at-eof.sh

View File

@ -88,6 +88,11 @@ jobs:
registry: registry:
- 'docker.io' - 'docker.io'
- 'public.ecr.aws' - 'public.ecr.aws'
exclude:
- profile: emqx-enterprise
registry: 'public.ecr.aws'
- profile: emqx-enterprise-elixir
registry: 'public.ecr.aws'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -59,7 +59,7 @@ jobs:
with: with:
asset_paths: '["packages/*"]' asset_paths: '["packages/*"]'
- name: update to emqx.io - name: update to emqx.io
if: startsWith(github.ref_name, 'v') && (github.event_name == 'release' || inputs.publish_release_artefacts) if: startsWith(github.ref_name, 'v') && ((github.event_name == 'release' && !github.event.prerelease) || inputs.publish_release_artefacts)
run: | run: |
set -eux set -eux
curl -w %{http_code} \ curl -w %{http_code} \
@ -70,6 +70,7 @@ jobs:
-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: Push to packagecloud.io - name: Push to packagecloud.io
if: (github.event_name == 'release' && !github.event.prerelease) || inputs.publish_release_artefacts
env: env:
PROFILE: ${{ steps.profile.outputs.profile }} PROFILE: ${{ steps.profile.outputs.profile }}
VERSION: ${{ steps.profile.outputs.version }} VERSION: ${{ steps.profile.outputs.version }}

View File

@ -43,6 +43,7 @@ jobs:
;; ;;
esac esac
- uses: emqx/push-helm-action@v1.1 - uses: emqx/push-helm-action@v1.1
if: github.event_name == 'release' && !github.event.prerelease
with: with:
charts_dir: "${{ github.workspace }}/deploy/charts/${{ steps.profile.outputs.profile }}" charts_dir: "${{ github.workspace }}/deploy/charts/${{ steps.profile.outputs.profile }}"
version: ${{ steps.profile.outputs.version }} version: ${{ steps.profile.outputs.version }}