Bumps the actions group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` | `4.1.7` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.3` | `4.3.5` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.7` | `4.1.8` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3.0.0` | `3.2.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.3.0` | `3.6.1` | | [docker/login-action](https://github.com/docker/login-action) | `3.2.0` | `3.3.0` | | [erlef/setup-beam](https://github.com/erlef/setup-beam) | `1.18.0` | `1.18.1` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.3` | `2.4.0` | Updates `actions/checkout` from 4.1.2 to 4.1.7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.2...692973e3d937129bcbf40652eb9f2f61becf3332) Updates `actions/upload-artifact` from 4.3.3 to 4.3.5 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](65462800fd...89ef406dd8) Updates `actions/download-artifact` from 4.1.7 to 4.1.8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](65a9edc588...fa0a91b85d) Updates `docker/setup-qemu-action` from 3.0.0 to 3.2.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](68827325e0...49b3bc8e6b) Updates `docker/setup-buildx-action` from 3.3.0 to 3.6.1 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](d70bba72b1...988b5a0280) Updates `docker/login-action` from 3.2.0 to 3.3.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](0d4c9c5ea7...9780b0c442) Updates `erlef/setup-beam` from 1.18.0 to 1.18.1 - [Release notes](https://github.com/erlef/setup-beam/releases) - [Commits](a6e26b2231...b9c58b0450) Updates `ossf/scorecard-action` from 2.3.3 to 2.4.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](dc50aa9510...62b2cac7ed) --- 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-qemu-action dependency-type: direct:production update-type: version-update:semver-minor 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: erlef/setup-beam dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
215 lines
6.6 KiB
YAML
215 lines
6.6 KiB
YAML
name: Push Entrypoint
|
|
|
|
concurrency:
|
|
group: push-entrypoint-${{ github.event_name }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
branches:
|
|
- 'master'
|
|
- 'release-5[0-9]'
|
|
- 'ci/**'
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
required: false
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
IS_CI: 'yes'
|
|
|
|
jobs:
|
|
init:
|
|
runs-on: ubuntu-22.04
|
|
outputs:
|
|
BUILDER_VSN: ${{ steps.env.outputs.BUILDER_VSN }}
|
|
OTP_VSN: ${{ steps.env.outputs.OTP_VSN }}
|
|
ELIXIR_VSN: ${{ steps.env.outputs.ELIXIR_VSN }}
|
|
BUILDER: ${{ steps.env.outputs.BUILDER }}
|
|
BUILD_FROM: ${{ steps.env.outputs.BUILD_FROM }}
|
|
RUN_FROM: ${{ steps.env.outputs.BUILD_FROM }}
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
ref: ${{ github.event.inputs.ref }}
|
|
- name: Set up environment
|
|
id: env
|
|
run: |
|
|
source env.sh
|
|
echo "BUILDER_VSN=$EMQX_BUILDER_VSN" >> "$GITHUB_OUTPUT"
|
|
echo "OTP_VSN=$OTP_VSN" >> "$GITHUB_OUTPUT"
|
|
echo "ELIXIR_VSN=$ELIXIR_VSN" >> "$GITHUB_OUTPUT"
|
|
echo "BUILDER=$EMQX_BUILDER" >> "$GITHUB_OUTPUT"
|
|
echo "BUILD_FROM=$EMQX_DOCKER_BUILD_FROM" >> "$GITHUB_OUTPUT"
|
|
echo "RUN_FROM=$EMQX_DOCKER_RUN_FROM" >> "$GITHUB_OUTPUT"
|
|
|
|
prepare:
|
|
runs-on: ubuntu-22.04
|
|
needs: init
|
|
container: ${{ needs.init.outputs.BUILDER }}
|
|
outputs:
|
|
profile: ${{ steps.parse-git-ref.outputs.profile }}
|
|
release: ${{ steps.parse-git-ref.outputs.release }}
|
|
latest: ${{ steps.parse-git-ref.outputs.latest }}
|
|
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
|
ct-host: ${{ steps.matrix.outputs.ct-host }}
|
|
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
ref: ${{ github.event.inputs.ref }}
|
|
fetch-depth: 0
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
shell: bash
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- name: Detect emqx profile
|
|
id: parse-git-ref
|
|
run: |
|
|
JSON="$(./scripts/parse-git-ref.sh $GITHUB_REF)"
|
|
PROFILE=$(echo "$JSON" | jq -cr '.profile')
|
|
RELEASE=$(echo "$JSON" | jq -cr '.release')
|
|
LATEST=$(echo "$JSON" | jq -cr '.latest')
|
|
echo "profile=$PROFILE" | tee -a $GITHUB_OUTPUT
|
|
echo "release=$RELEASE" | tee -a $GITHUB_OUTPUT
|
|
echo "latest=$LATEST" | tee -a $GITHUB_OUTPUT
|
|
- name: Build matrix
|
|
id: matrix
|
|
run: |
|
|
MATRIX="$(./scripts/find-apps.sh --ci)"
|
|
echo "${MATRIX}" | jq
|
|
CT_MATRIX="$(echo "${MATRIX}" | jq -c 'map({profile}) | unique')"
|
|
CT_HOST="$(echo "${MATRIX}" | jq -c 'map(select(.runner == "host"))')"
|
|
CT_DOCKER="$(echo "${MATRIX}" | jq -c 'map(select(.runner == "docker"))')"
|
|
echo "ct-matrix=${CT_MATRIX}" | tee -a $GITHUB_OUTPUT
|
|
echo "ct-host=${CT_HOST}" | tee -a $GITHUB_OUTPUT
|
|
echo "ct-docker=${CT_DOCKER}" | tee -a $GITHUB_OUTPUT
|
|
|
|
build_packages:
|
|
if: needs.prepare.outputs.release == 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
uses: ./.github/workflows/build_packages.yaml
|
|
with:
|
|
profile: ${{ needs.prepare.outputs.profile }}
|
|
publish: true
|
|
otp_vsn: ${{ needs.init.outputs.OTP_VSN }}
|
|
elixir_vsn: ${{ needs.init.outputs.ELIXIR_VSN }}
|
|
builder_vsn: ${{ needs.init.outputs.BUILDER_VSN }}
|
|
secrets: inherit
|
|
|
|
build_and_push_docker_images:
|
|
if: needs.prepare.outputs.release == 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
uses: ./.github/workflows/build_and_push_docker_images.yaml
|
|
with:
|
|
profile: ${{ needs.prepare.outputs.profile }}
|
|
publish: true
|
|
latest: ${{ needs.prepare.outputs.latest }}
|
|
build_from: ${{ needs.init.outputs.BUILD_FROM }}
|
|
run_from: ${{ needs.init.outputs.RUN_FROM }}
|
|
secrets: inherit
|
|
|
|
build_slim_packages:
|
|
if: needs.prepare.outputs.release != 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
uses: ./.github/workflows/build_slim_packages.yaml
|
|
|
|
compile:
|
|
if: needs.prepare.outputs.release != 'true'
|
|
runs-on: ${{ endsWith(github.repository, '/emqx') && 'ubuntu-22.04' || fromJSON('["self-hosted","ephemeral","linux","x64"]') }}
|
|
container: ${{ needs.init.outputs.BUILDER }}
|
|
needs:
|
|
- init
|
|
- prepare
|
|
strategy:
|
|
matrix:
|
|
profile:
|
|
- emqx
|
|
- emqx-enterprise
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
ref: ${{ github.event.inputs.ref }}
|
|
fetch-depth: 0
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- id: compile
|
|
env:
|
|
PROFILE: ${{ matrix.profile }}
|
|
ENABLE_COVER_COMPILE: 1
|
|
run: |
|
|
make $PROFILE
|
|
echo "PROFILE=${PROFILE}" | tee -a .env
|
|
echo "PKG_VSN=$(./pkg-vsn.sh ${PROFILE})" | tee -a .env
|
|
zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
with:
|
|
name: ${{ matrix.profile }}
|
|
path: ${{ matrix.profile }}.zip
|
|
retention-days: 1
|
|
|
|
run_emqx_app_tests:
|
|
needs:
|
|
- init
|
|
- compile
|
|
uses: ./.github/workflows/run_emqx_app_tests.yaml
|
|
with:
|
|
builder: ${{ needs.init.outputs.BUILDER }}
|
|
before_ref: ${{ github.event.before }}
|
|
after_ref: ${{ github.sha }}
|
|
|
|
run_test_cases:
|
|
if: needs.prepare.outputs.release != 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
- compile
|
|
uses: ./.github/workflows/run_test_cases.yaml
|
|
with:
|
|
builder: ${{ needs.init.outputs.BUILDER }}
|
|
ct-matrix: ${{ needs.prepare.outputs.ct-matrix }}
|
|
ct-host: ${{ needs.prepare.outputs.ct-host }}
|
|
ct-docker: ${{ needs.prepare.outputs.ct-docker }}
|
|
|
|
run_conf_tests:
|
|
if: needs.prepare.outputs.release != 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
- compile
|
|
uses: ./.github/workflows/run_conf_tests.yaml
|
|
with:
|
|
builder: ${{ needs.init.outputs.BUILDER }}
|
|
|
|
static_checks:
|
|
if: needs.prepare.outputs.release != 'true'
|
|
needs:
|
|
- init
|
|
- prepare
|
|
- compile
|
|
uses: ./.github/workflows/static_checks.yaml
|
|
with:
|
|
builder: ${{ needs.init.outputs.BUILDER }}
|
|
ct-matrix: ${{ needs.prepare.outputs.ct-matrix }}
|