forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline to generate release packages (#193)
* Add script to get the version of OpenSearch * Set revision to 0 by default. - Reduce inputs for scripts. - Add script to generate packages' naming convention. - Make scripts self-aware of the OpenSearch version. * Fix assemble * Smoke test new pipeline to build packages * Fix syntax errors * Update build.yml Signed-off-by: Álex Ruiz <[email protected]> * Add workflow to build packages on push * Run actionlint * Fix jq argjson * Fix set matrix output ? * Try new approach using a single workflow * Fix GITHUB_OUTPUT * Fix baptizer invocation * Add testing and upload to new approach * Fix hard coded revision number on RPM assembly * New attempt * Skip upload unless specified * Install plugins on RPM * Promote new approach Removes previous workflows to generate packages * Fix workflow name * Attempt to fix release package naming * Fix build.sh invocation from workflow * Use min package name in workflow * Use min package name for release naming convention in workflow * Attemtp to fix regex * Upgrade to aws-actions/configure-aws-credentials@v4 Clean up * Apply latest requirements Add workflow with single matrix for QA use. Rename inputs. Add checksum input. * Add checksum generation and upload * Use choice as input types for system and architecture * Invoke build single packages with upload option * Add documentation and clean up * Rename scripts folder to packaging_scripts --------- Signed-off-by: Álex Ruiz <[email protected]>
- Loading branch information
Showing
18 changed files
with
876 additions
and
779 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build packages (on push) | ||
|
||
# This workflow runs when any of the following occur: | ||
# - On push to branches named after ci/* | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/heads | ||
branches: | ||
- "ci/*" | ||
|
||
jobs: | ||
call-build-workflow: | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build packages (single) | ||
|
||
# This workflow runs when any of the following occur: | ||
# - Run manually | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
revision: | ||
description: "Revision" | ||
type: string | ||
default: "0" | ||
checksum: | ||
description: "Checksum ?" | ||
type: boolean | ||
default: false | ||
is_stage: | ||
description: "Is stage ?" | ||
type: boolean | ||
default: false | ||
system: | ||
description: "Package OS" | ||
type: choice | ||
options: | ||
- rpm | ||
- deb | ||
default: deb | ||
architecture: | ||
description: "Package architecture" | ||
type: choice | ||
options: | ||
- amd64 | ||
- x86_64 | ||
default: amd64 | ||
|
||
jobs: | ||
call-build-workflow: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
revision: ${{ inputs.revision }} | ||
checksum: ${{ inputs.checksum }} | ||
is_stage: ${{ inputs.is_stage }} | ||
distribution: '[ "${{ inputs.system }}" ]' | ||
upload: true | ||
# Architecture is always 'x64', which is the default value in ./build.yml | ||
# It is an input just for convenience and standardisation. | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.