Release #105
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
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Version of the release" | |
| required: true | |
| buildNumber: | |
| description: "Build number of the release" | |
| required: true | |
| name: Release | |
| jobs: | |
| release: | |
| runs-on: github-ubuntu-latest-s | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - id: secrets | |
| uses: SonarSource/[email protected] | |
| with: | |
| secrets: | | |
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-promoter access_token | artifactory_access_token; | |
| development/kv/data/slack webhook | slack_webhook_url; | |
| - uses: SonarSource/[email protected] | |
| with: | |
| jfrogAccessToken: ${{ fromJSON(steps.secrets.outputs.vault).artifactory_access_token }} | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Fetch history | |
| run: git fetch --prune --unshallow | |
| - name: Promote | |
| run: jfrog rt build-promote --status released "${{ github.event.repository.name }}" "${{ github.event.inputs.buildNumber }}" sonarsource-helm-releases | |
| - name: Create local repository directory | |
| id: local_repo | |
| run: echo "dir=$(mktemp -d repo.XXXXXXXX)" >> "$GITHUB_OUTPUT" | |
| - uses: SonarSource/gh-action_release/download-build@v5 | |
| with: | |
| local-repo-dir: ${{ steps.local_repo.outputs.dir }} | |
| remote-repo: sonarsource-helm | |
| build-number: ${{ github.event.inputs.buildNumber }} | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file_glob: true | |
| file: ${{ steps.local_repo.outputs.dir }}/* | |
| tag: ${{ github.event.inputs.version }} | |
| overwrite: true | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "[email protected]" | |
| - name: Release to GitHub | |
| uses: ./.github/actions/helm-index | |
| env: | |
| CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| with: | |
| repository-name: "${{ github.event.repository.name }}" | |
| package-path: ${{ steps.local_repo.outputs.dir }} | |
| release-name: "${{ github.event.inputs.version}}" |