You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

release.yml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Release
  2. # This workflow is triggered when publishing a GitHub release
  3. on:
  4. push:
  5. jobs:
  6. release_docker:
  7. permissions:
  8. id-token: write
  9. runs-on: ubuntu-latest
  10. name: Start Docker release process
  11. timeout-minutes: 60
  12. steps:
  13. - name: get secrets
  14. id: secrets
  15. uses: SonarSource/vault-action-wrapper@8e22afd670393ed80f489f5dbd517d09ea21d75b # 2.4.3-1
  16. with:
  17. secrets: |
  18. development/github/token/SonarSource-sonar-scanner-cli-release token | GITHUB_TOKEN_RELEASE;
  19. development/kv/data/slack token | SLACK_BOT_TOKEN;
  20. - name: Create Release for Docker Image
  21. id: create_release
  22. uses: softprops/action-gh-release@v1
  23. env:
  24. GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN_RELEASE }}
  25. GITHUB_REPOSITORY: SonarSource/sonar-scanner-cli-docker
  26. with:
  27. tag_name: "refs/tags/5.0.0.2966"
  28. body: Release containing ScannerCLI version 5.0.0.2966
  29. draft: false
  30. prerelease: false
  31. - name: Notify failures on Slack
  32. uses: slackapi/slack-github-action@v1.23.0
  33. if: failure()
  34. with:
  35. channel-id: team-sonarqube-build
  36. slack-message: "Release failed, see the logs at https://github.com/={{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"
  37. env:
  38. SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}