Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO-NOT-MERGE NO-JIRA yet repackaging #713

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .cirrus/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
CURRENT_LTA_VERSION: 9.9.7
CURRENT_VERSION: 10.7.0
NEXT_VERSION: 10.8.0
COMMUNITY_BUILD_VERSION: 0000


build_server_hw_template: &BUILD_SERVER_HW_TEMPLATE
Expand Down Expand Up @@ -93,8 +94,8 @@ multi_arch_build_task:
tag: $CURRENT_LTA_VERSION-datacenter-app
- version: 9/datacenter/search
tag: $CURRENT_LTA_VERSION-datacenter-search
- version: 10/community
tag: $NEXT_VERSION-community
- version: community-build
tag: $COMMUNITY_BUILD_VERSION-community
- version: 10/developer
tag: $NEXT_VERSION-developer
- version: 10/enterprise
Expand Down Expand Up @@ -193,7 +194,7 @@ multi_arch_test_task:
- test_name: docker-compose
tag: $CURRENT_LTA_VERSION-datacenter
- test_name: docker
tag: $NEXT_VERSION-community
tag: $COMMUNITY_BUILD_VERSION-community
- test_name: docker
tag: $NEXT_VERSION-developer
- test_name: docker
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Reusable release job template

on:
workflow_call:
inputs:
tag:
required: true
type: string

jobs:
release:
name: Upload Release Asset
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- id: secrets
uses: SonarSource/[email protected]
with:
secrets: |
development/kv/data/sign key | gpg_key;
development/kv/data/sign passphrase | gpg_passphrase;
- name: Generate CycloneDX SBOM
uses: SonarSource/gh-action_sbom@v1
with:
image: "sonarqube:${{ inputs.tag }}"
filename: "sonarqube-${{ inputs.tag }}-bom.json"
upload-artifact: true
upload-release-assets: true
env:
GPG_PRIVATE_KEY_PASSPHRASE: ${{ fromJSON(steps.secrets.outputs.vault).gpg_passphrase }}
GPG_PRIVATE_KEY_BASE64: ${{ fromJSON(steps.secrets.outputs.vault).gpg_key }}
44 changes: 16 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,28 @@ on:
- created

jobs:
release:
release-10:
name: Upload Release Asset
if: contains(github.event.release.name, '10')
strategy:
fail-fast: false
matrix:
tag:
- 9-community
- 9-developer
- 9-enterprise
- 9-datacenter-app
- 9-datacenter-search
- 10-community
- 10-developer
- 10-enterprise
- 10-datacenter-app
- 10-datacenter-search
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- id: secrets
uses: SonarSource/[email protected]
with:
secrets: |
development/kv/data/sign key | gpg_key;
development/kv/data/sign passphrase | gpg_passphrase;
- name: Generate CycloneDX SBOM
uses: SonarSource/gh-action_sbom@v1
with:
image: "sonarqube:${{ matrix.tag }}"
filename: "sonarqube-${{ matrix.tag }}-bom.json"
upload-artifact: true
upload-release-assets: true
env:
GPG_PRIVATE_KEY_PASSPHRASE: ${{ fromJSON(steps.secrets.outputs.vault).gpg_passphrase }}
GPG_PRIVATE_KEY_BASE64: ${{ fromJSON(steps.secrets.outputs.vault).gpg_key }}
uses: ./.github/workflows/release-template.yml
with:
tag: ${{ matrix.tag }}
release-community:
name: Upload Release Asset
if: contains(github.event.release.name, 'community')
strategy:
fail-fast: false
matrix:
tag:
- community
uses: ./.github/workflows/release-template.yml
with:
tag: ${{ matrix.tag }}
File renamed without changes.
File renamed without changes.