-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into deb-rpm-permissions-2
- Loading branch information
Showing
336 changed files
with
37,286 additions
and
3,008 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,70 @@ | ||
--- | ||
name: automatic-merges | ||
|
||
on: | ||
workflow_run: | ||
# If new workflows triggered on pull request are added, they should be added to this list | ||
workflows: | ||
- Link Checker | ||
- yaml-lint | ||
- dockerfile-lint | ||
- groovy-tests | ||
- manifests | ||
- python-tests | ||
types: completed | ||
|
||
jobs: | ||
automatic-merge-manifests: | ||
if: github.repository == 'opensearch-project/opensearch-build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- id: find-triggering-pr | ||
uses: peternied/find-triggering-pr@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: peternied/discerning-merger@v3 | ||
if: steps.find-triggering-pr.outputs.pr-number != null | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }} | ||
allowed-authors: | | ||
dependabot | ||
opensearch-trigger-bot | ||
peterzhuamazon | ||
bbarani | ||
gaiksaya | ||
rishabh6788 | ||
zelinh | ||
jordarlu | ||
prudhvigodithi | ||
Divyaasm | ||
dblock | ||
tianleh | ||
peternied | ||
allowed-files: | | ||
manifests/*/*.yml | ||
automatic-merge-new-manifests: | ||
if: github.repository == 'opensearch-project/opensearch-build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- id: find-triggering-pr | ||
uses: peternied/find-triggering-pr@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: peternied/discerning-merger@v3 | ||
if: steps.find-triggering-pr.outputs.pr-number != null | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }} | ||
allowed-authors: | | ||
opensearch-ci-bot | ||
allowed-files: | | ||
manifests/*/*.yml | ||
jenkins/check-for-build.jenkinsfile |
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,62 @@ | ||
--- | ||
name: Get CI Image Tag | ||
on: | ||
workflow_call: | ||
inputs: | ||
product: | ||
required: false | ||
type: string | ||
default: 'opensearch' | ||
platform: | ||
required: false | ||
type: string | ||
build_ref: | ||
required: false | ||
type: string | ||
default: 'main' | ||
version: | ||
required: false | ||
type: string | ||
type: | ||
required: false | ||
type: string | ||
default: 'build' | ||
outputs: | ||
ci-image-version-linux: | ||
description: The ci image version for linux build | ||
value: ${{ jobs.Get-CI-Image-Tag.outputs.output-ci-image-version-linux }} | ||
|
||
jobs: | ||
Get-CI-Image-Tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
output-ci-image-version-linux: ${{ steps.step-ci-image-version-linux.outputs.ci-image-version-linux }} | ||
steps: | ||
- name: Install crane | ||
uses: iarekylew00t/crane-installer@v1 | ||
with: | ||
crane-release: v0.15.2 | ||
- name: Checkout opensearch-build repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'opensearch-project/opensearch-build' | ||
ref: ${{ inputs.build_ref }} | ||
path: 'opensearch-build' | ||
- name: Get ci image version from opensearch-build repository scripts | ||
id: step-ci-image-version-linux | ||
run: | | ||
PRODUCT=${{ inputs.product }} | ||
PLATFORM=${{ inputs.platform }} | ||
TYPE=${{ inputs.type }} | ||
if [[ -z "$PLATFORM" ]]; then | ||
if [[ "$PRODUCT" = "opensearch" ]]; then | ||
PLATFORM="centos7" # Temp measure before centos7 deprecation on opensearch for k-NN | ||
else | ||
PLATFORM="rockylinux8" | ||
fi | ||
fi | ||
crane version | ||
echo $PRODUCT $PLATFORM | ||
CI_IMAGE_VERSION=`opensearch-build/docker/ci/get-ci-images.sh -p $PLATFORM -u $PRODUCT -t $TYPE | head -1` | ||
echo $CI_IMAGE_VERSION | ||
echo "ci-image-version-linux=$CI_IMAGE_VERSION" >> $GITHUB_OUTPUT |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Add License Header | ||
uses: kt3k/[email protected] | ||
run: npx @kt3k/license-checker |
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
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
Oops, something went wrong.