aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorMate Molnar <matemoln@users.noreply.github.com>2024-04-26 13:24:26 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2024-06-07 09:37:54 +0200
commit95426e1929e9c8b925f2502fb84fb85938331763 (patch)
tree3643d3992934d4c927323d3796f604633f484908 /.github/workflows/release.yml
parent5bf62ea3a849839766a18b27a22259af2ad75b17 (diff)
downloadsonar-scanner-cli-95426e1929e9c8b925f2502fb84fb85938331763.tar.gz
sonar-scanner-cli-95426e1929e9c8b925f2502fb84fb85938331763.zip
BUILD-4839 Update the release workflow to the latest version
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml26
1 files changed, 1 insertions, 25 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a4899a0..80a5342 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -10,32 +10,8 @@ jobs:
permissions:
id-token: write
contents: write
- uses: SonarSource/gh-action_release/.github/workflows/main.yaml@66a34c7817fc1684b80badc4326de58c334133de # 5.0.10
+ uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v5
with:
publishToBinaries: true
mavenCentralSync: true
slackChannel: team-sonarqube-build
- release_docker:
- permissions:
- id-token: write # Required by SonarSource/vault-action-wrapper
- contents: write # Required by softprops/action-gh-release
- runs-on: ubuntu-latest
- name: Start Docker release process
- needs: release
- timeout-minutes: 60
- steps:
- - name: get secrets
- id: secrets
- uses: SonarSource/vault-action-wrapper@8e22afd670393ed80f489f5dbd517d09ea21d75b # 2.4.3-1
- with:
- secrets: |
- development/github/token/SonarSource-sonar-scanner-cli-release token | GITHUB_TOKEN_RELEASE;
- development/kv/data/slack token | SLACK_BOT_TOKEN;
- - name: Notify failures on Slack
- uses: slackapi/slack-github-action@v1.23.0
- if: failure()
- with:
- channel-id: team-sonarqube-build
- slack-message: "Releasing Docker Image failed, see the logs at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} by ${{ github.actor }}"
- env:
- SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}