Bumps the actions group with 11 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` | `4.1.6` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.1` | `4.3.3` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.4` | `4.1.7` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.2.0` | `3.3.0` | | [docker/login-action](https://github.com/docker/login-action) | `3.1.0` | `3.2.0` | | [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) | `1.25.0` | `1.26.0` | | [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) | `3.0.0` | `3.1.1` | | [actions/cache](https://github.com/actions/cache) | `4.0.1` | `4.0.2` | | [erlef/setup-beam](https://github.com/erlef/setup-beam) | `1.17.5` | `1.17.6` | | [coverallsapp/github-action](https://github.com/coverallsapp/github-action) | `2.2.3` | `2.3.0` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.1` | `2.3.3` | Updates `actions/checkout` from 4.1.2 to 4.1.6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](9bb56186c3...a5ac7e51b4) Updates `actions/upload-artifact` from 4.3.1 to 4.3.3 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](5d5d22a312...65462800fd) Updates `actions/download-artifact` from 4.1.4 to 4.1.7 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](c850b930e6...65a9edc588) Updates `docker/setup-buildx-action` from 3.2.0 to 3.3.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](2b51285047...d70bba72b1) Updates `docker/login-action` from 3.1.0 to 3.2.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](e92390c5fb...0d4c9c5ea7) Updates `slackapi/slack-github-action` from 1.25.0 to 1.26.0 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](6c661ce588...70cd7be8e4) Updates `hashicorp/setup-terraform` from 3.0.0 to 3.1.1 - [Release notes](https://github.com/hashicorp/setup-terraform/releases) - [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md) - [Commits](a1502cd9e7...651471c36a) Updates `actions/cache` from 4.0.1 to 4.0.2 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](ab5e6d0c87...0c45773b62) Updates `erlef/setup-beam` from 1.17.5 to 1.17.6 - [Release notes](https://github.com/erlef/setup-beam/releases) - [Commits](2f0cc07b4b...0a541161e4) Updates `coverallsapp/github-action` from 2.2.3 to 2.3.0 - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](3dfc556739...643bc377ff) Updates `ossf/scorecard-action` from 2.3.1 to 2.3.3 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](0864cf1902...dc50aa9510) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: hashicorp/setup-terraform dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: erlef/setup-beam dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
141 lines
5.6 KiB
YAML
141 lines
5.6 KiB
YAML
name: Upload release assets
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
type: string
|
|
required: true
|
|
publish_release_artifacts:
|
|
type: boolean
|
|
required: true
|
|
default: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: write
|
|
checks: write
|
|
packages: write
|
|
actions: read
|
|
issues: read
|
|
pull-requests: read
|
|
repository-projects: read
|
|
statuses: read
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
with:
|
|
ref: ${{ github.event.inputs.tag }}
|
|
- name: Detect profile
|
|
id: profile
|
|
run: |
|
|
if git describe --tags --match '[v|e]*' --exact; then
|
|
REF=$(git describe --tags --match '[v|e]*' --exact)
|
|
else
|
|
echo "Only release tags matching '[v|e]*' are supported"
|
|
exit 1
|
|
fi
|
|
case "$REF" in
|
|
v*)
|
|
echo "profile=emqx" >> $GITHUB_OUTPUT
|
|
echo "version=$(./pkg-vsn.sh emqx)" >> $GITHUB_OUTPUT
|
|
echo "ref_name=v$(./pkg-vsn.sh emqx)" >> "$GITHUB_ENV"
|
|
echo "s3dir=emqx-ce" >> $GITHUB_OUTPUT
|
|
;;
|
|
e*)
|
|
echo "profile=emqx-enterprise" >> $GITHUB_OUTPUT
|
|
echo "version=$(./pkg-vsn.sh emqx-enterprise)" >> $GITHUB_OUTPUT
|
|
echo "ref_name=e$(./pkg-vsn.sh emqx-enterprise)" >> "$GITHUB_ENV"
|
|
echo "s3dir=emqx-ee" >> $GITHUB_OUTPUT
|
|
;;
|
|
esac
|
|
- name: Get packages
|
|
run: |
|
|
BUCKET=${{ secrets.AWS_S3_BUCKET }}
|
|
OUTPUT_DIR=${{ steps.profile.outputs.s3dir }}
|
|
aws s3 cp --recursive s3://$BUCKET/$OUTPUT_DIR/${{ env.ref_name }} packages
|
|
- uses: emqx/upload-assets@974befcf0e72a1811360a81c798855efb66b0551 # 0.5.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
with:
|
|
asset_paths: '["packages/*"]'
|
|
tag_name: "${{ env.ref_name }}"
|
|
skip_existing: true
|
|
- name: update to emqx.io
|
|
if: github.event_name == 'release' || inputs.publish_release_artifacts
|
|
run: |
|
|
set -eux
|
|
curl -w %{http_code} \
|
|
--insecure \
|
|
-H "Content-Type: application/json" \
|
|
-H "token: ${{ secrets.EMQX_IO_TOKEN }}" \
|
|
-X POST \
|
|
-d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ env.ref_name }}\" }" \
|
|
${{ secrets.EMQX_IO_RELEASE_API }}
|
|
- name: Push to packagecloud.io
|
|
if: (github.event_name == 'release' && !github.event.release.prerelease) || inputs.publish_release_artifacts
|
|
env:
|
|
PROFILE: ${{ steps.profile.outputs.profile }}
|
|
VERSION: ${{ steps.profile.outputs.version }}
|
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
|
run: |
|
|
set -eu
|
|
REPO=$PROFILE
|
|
if [ $PROFILE = 'emqx-enterprise' ]; then
|
|
REPO='emqx-enterprise5'
|
|
fi
|
|
function push() {
|
|
docker run -t --rm -e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN -v $(pwd)/$2:/w/$2 -w /w ghcr.io/emqx/package_cloud push emqx/$REPO/$1 $2
|
|
}
|
|
push "debian/buster" "packages/$PROFILE-$VERSION-debian10-amd64.deb"
|
|
push "debian/buster" "packages/$PROFILE-$VERSION-debian10-arm64.deb"
|
|
push "debian/bullseye" "packages/$PROFILE-$VERSION-debian11-amd64.deb"
|
|
push "debian/bullseye" "packages/$PROFILE-$VERSION-debian11-arm64.deb"
|
|
push "debian/bookworm" "packages/$PROFILE-$VERSION-debian12-amd64.deb"
|
|
push "debian/bookworm" "packages/$PROFILE-$VERSION-debian12-arm64.deb"
|
|
push "ubuntu/focal" "packages/$PROFILE-$VERSION-ubuntu20.04-amd64.deb"
|
|
push "ubuntu/focal" "packages/$PROFILE-$VERSION-ubuntu20.04-arm64.deb"
|
|
push "ubuntu/jammy" "packages/$PROFILE-$VERSION-ubuntu22.04-amd64.deb"
|
|
push "ubuntu/jammy" "packages/$PROFILE-$VERSION-ubuntu22.04-arm64.deb"
|
|
push "ubuntu/noble" "packages/$PROFILE-$VERSION-ubuntu24.04-amd64.deb"
|
|
push "ubuntu/noble" "packages/$PROFILE-$VERSION-ubuntu24.04-arm64.deb"
|
|
push "el/8" "packages/$PROFILE-$VERSION-el8-amd64.rpm"
|
|
push "el/8" "packages/$PROFILE-$VERSION-el8-arm64.rpm"
|
|
push "el/9" "packages/$PROFILE-$VERSION-el9-amd64.rpm"
|
|
push "el/9" "packages/$PROFILE-$VERSION-el9-arm64.rpm"
|
|
push "amazon/2" "packages/$PROFILE-$VERSION-amzn2-amd64.rpm"
|
|
push "amazon/2" "packages/$PROFILE-$VERSION-amzn2-arm64.rpm"
|
|
push "amazon/2023" "packages/$PROFILE-$VERSION-amzn2023-amd64.rpm"
|
|
push "amazon/2023" "packages/$PROFILE-$VERSION-amzn2023-arm64.rpm"
|
|
|
|
rerun-apps-version-check:
|
|
runs-on: ubuntu-22.04
|
|
if: github.repository_owner == 'emqx' && github.event_name == 'release'
|
|
needs:
|
|
- upload
|
|
permissions:
|
|
pull-requests: read
|
|
checks: write
|
|
actions: write
|
|
steps:
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
- name: trigger re-run of app versions check on open PRs
|
|
shell: bash
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python3 scripts/rerun-apps-version-check.py
|