Skip to content

Build

Build #31

Workflow file for this run

name: Build
on:
push:
branches:
- master
- branch-*
pull_request:
merge_group:
workflow_dispatch:
#env:
# DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: ubuntu-24.04-large
name: Build
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: SonarSource/ci-github-actions/get-build-number@master # dogfood
- uses: SonarSource/ci-github-actions/build-poetry@master # dogfood
promote:
needs:
- build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: ubuntu-24.04-large
name: Promote
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: jdx/mise-action@5cb1df66ed5e1fb3c670ea0b62fd17a76979826a # v2.3.1
with:
cache_save: false
- name: Restore local Poetry cache
uses: SonarSource/ci-github-actions/cache@feat/mmatuszny/BUILD-8451
with:
path: ${{ github.workspace }}/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
restore-keys: poetry-${{ runner.os }}-
- uses: SonarSource/ci-github-actions/get-build-number@feat/jcarsique/BUILD-80099-promotePoetry # TODO WIP BUILD-8099
- uses: SonarSource/ci-github-actions/promote-poetry@feat/jcarsique/BUILD-80099-promotePoetry # TODO WIP BUILD-8099