Build Trino (attempt #1) #415
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Build Trino | |
| run-name: | | |
| Build Trino (attempt #${{ github.run_attempt }}) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| skip-publish: | |
| description: Skip publishing and signing images | |
| type: boolean | |
| required: true | |
| default: false | |
| schedule: | |
| - cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_* | |
| push: | |
| branches: [main] | |
| tags: | |
| - "[0-9][0-9].[0-9]+.[0-9]+" | |
| - "[0-9][0-9].[0-9]+.[0-9]+-rc[0-9]+" | |
| paths: | |
| # To check dependencies, run this ( you will need to consider transitive dependencies) | |
| # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' | |
| - trino/** | |
| - vector/** | |
| - stackable-base/** | |
| - java-base/** | |
| - java-devel/** | |
| - .github/actions/** | |
| - .github/workflows/build_trino.yaml | |
| - .github/workflows/reusable_build_image.yaml | |
| permissions: {} | |
| jobs: | |
| build_image: | |
| name: Reusable Workflow | |
| uses: ./.github/workflows/reusable_build_image.yaml | |
| secrets: | |
| harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} | |
| quay-robot-secret: ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} | |
| slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| with: | |
| product-name: trino | |
| sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} | |
| registry-namespace: sdp | |
| # Default to true if not set/empty (if not triggered by workflow_dispatch) | |
| publish: ${{ !inputs.skip-publish }} | |
| # Since building Vector from source, this build runs out of disk space. | |
| # As such, we use the Ubicloud runners which provide bigger disks. | |
| runners: ubicloud |