Skip to content

Commit

Permalink
NO-JIRA fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jCOTINEAU committed Jul 27, 2023
1 parent 69fff1f commit 690a3ab
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
name: Release
# This workflow is triggered when publishing a GitHub release
on:
release:
types:
- published
push:

jobs:
release:
permissions:
id-token: write
contents: write
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@28c15313f2bb2ee0cb67ba48cc008c2391851b81 # 5.0.1
with:
publishToBinaries: true
mavenCentralSync: true
slackChannel: team-sonarqube-build
release_docker:
permissions:
id-token: write
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/github/token/SonarSource-sonar-scanner-cli-releases token | GITHUB_TOKEN_RELEASE;
development/kv/data/slack token | SLACK_BOT_TOKEN;
- name: Create Release for Docker Image
id: create_release
Expand All @@ -37,15 +25,15 @@ jobs:
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN_RELEASE }}
GITHUB_REPOSITORY: SonarSource/sonar-scanner-cli-docker
with:
tag_name: ${{ github.event.release.tag_name }}
body: Release containing ScannerCLI version ${{ github.event.release.tag_name }}
tag_name: "refs/tags/5.0.0.2966"
body: Release containing ScannerCLI version 5.0.0.2966
draft: false
prerelease: false
- name: Notify failures on Slack
uses: slackapi/[email protected]
if: failure()
with:
channel-id: team-sonarqube-build
slack-message: "Release failed, see the logs at https://github.com/{{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"
slack-message: "Release failed, see the logs at https://github.com/={{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"
env:
SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}

0 comments on commit 690a3ab

Please sign in to comment.