Skip to content

LINEA_BESU_TAR_GZ=25.11.0-linea4 (#1805) #577

LINEA_BESU_TAR_GZ=25.11.0-linea4 (#1805)

LINEA_BESU_TAR_GZ=25.11.0-linea4 (#1805) #577

name: linea-besu-package-release
on:
push:
branches:
- main
paths:
- 'linea-besu-package/**'
- '.github/actions/linea-besu-package/**'
- '.github/workflows/linea-besu-package-release.yml'
- '.github/workflows/reuse-linea-besu-package-*.yml'
workflow_call:
workflow_dispatch:
inputs:
release_tag_prefix:
description: 'Custom release tag prefix, i.e. docker image tag would be [prefix]-[YYYYMMDDHHMMSS]-[commit], if not given, the tracer plugin version from "versions.env" would be used as prefix'
required: false
type: string
default: ''
without_besu_fleet_plugin:
description: 'Type "true" to exclude besu-fleet-plugin in the release'
required: false
type: string
default: ''
expected_traces_api_ver:
description: '(For Debug) If given, this will override the expected traces api version in coordinator config'
required: false
type: string
default: ''
skip_e2e_test:
description: '(For Debug) Type "true" to skip e2e test for the need of pushing image to dockerhub'
required: false
type: string
default: ''
skip_push_image:
description: 'Type "true" to skip pushing image to dockerhub'
required: false
type: string
default: ''
permissions:
actions: read
id-token: write
contents: write
packages: write
jobs:
filter-commit-changes:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-small
name: Filter commit changes
if: ${{ github.event_name != 'workflow_dispatch' }}
outputs:
versions_env: ${{ steps.filter.outputs.versions-env }}
linea_configs: ${{ steps.filter.outputs.linea-configs }}
docker_files: ${{ steps.filter.outputs.docker-files }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Filter commit changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
id: filter
with:
base: ${{ github.ref }}
list-files: "json"
filters: |
versions-env:
- 'linea-besu-package/versions.env'
docker-files:
- 'linea-besu-package/linea-besu/Dockerfile'
- 'linea-besu-package/scripts/assemble-packages.sh'
linea-configs:
- 'linea-besu-package/linea-besu/**'
build-test-push:
needs: [ filter-commit-changes ]
if: ${{ always() && !cancelled() && (needs.filter-commit-changes.result == 'skipped' || needs.filter-commit-changes.result == 'success') }}
uses: ./.github/workflows/reuse-linea-besu-package-build-test-push.yml
with:
release_tag_prefix: ${{ inputs.release_tag_prefix }}
run_test: true
run_e2e_test: ${{ github.event_name == 'workflow_dispatch' || needs.filter-commit-changes.outputs.versions_env == 'true' || needs.filter-commit-changes.outputs.docker_files == 'true' }}
push_image: ${{ (github.event_name == 'workflow_dispatch' || needs.filter-commit-changes.outputs.versions_env == 'true' || needs.filter-commit-changes.outputs.docker_files == 'true' || needs.filter-commit-changes.outputs.linea_configs == 'true') && inputs.skip_push_image != 'true' }}
skip_e2e_test: ${{ inputs.skip_e2e_test == 'true' }}
expected_traces_api_ver: ${{ inputs.expected_traces_api_ver }}
with_besu_fleet_plugin: ${{ github.event_name == 'workflow_dispatch' && inputs.without_besu_fleet_plugin != 'true' }}
secrets: inherit