-
-
Notifications
You must be signed in to change notification settings - Fork 507
Upgrade Elasticsearch to 9.5.3 #2416
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
Changes from all commits
080a5ac
6d55ff6
b3ebf7e
2631987
34f3234
d5070d7
6098603
e2afb7c
9a27375
750a4aa
6543a8a
81b47cf
5618cb9
14ee904
40265bf
f80df40
9d1dfbb
18f2eb2
ce201fd
d6a093e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Elasticsearch 9.x Docker Image CI | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - "build/docker/elasticsearch/9.x/**" | ||
| - ".github/workflows/elasticsearch-docker-9.yml" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a same-repository contributor pushes a feature-branch edit to this workflow, this self-referential path trigger executes that unreviewed workflow definition with Useful? React with 👍 / 👎.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed: the default-branch tag guard prevents accidental stable-tag publication but is not a security boundary against a writer modifying a branch-controlled workflow. Leaving this finding open pending the owner decision on a trusted publisher or approval-protected credentials. I have not changed repository secret protections or represented the tag guard as solving this trust issue. |
||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| if: startsWith(github.ref, 'refs/tags/v') != true | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Setup .NET Core | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: 10.0.301 | ||
| - name: Build Reason | ||
| env: | ||
| GITHUB_EVENT: ${{ toJson(github) }} | ||
| run: "echo ref: ${{github.ref}} event: ${{github.event_name}}" | ||
| - name: Build Version | ||
| run: | | ||
| dotnet tool install --global minver-cli --version 7.0.0 | ||
| version=$(minver --tag-prefix v) | ||
| echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV | ||
| echo "VERSION=$version" >> $GITHUB_ENV | ||
| echo "### Version: $version" >> $GITHUB_STEP_SUMMARY | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v4 | ||
| - name: Login to DockerHub | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v4 | ||
| with: | ||
| platforms: linux/amd64,linux/arm64 | ||
| - name: Build custom Elasticsearch 9.x docker image | ||
| env: | ||
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
| run: | | ||
| VERSION=$(sed -n 's/.*elasticsearch:\([^ ]*\).*/\1/p' build/docker/elasticsearch/9.x/Dockerfile) | ||
| IMAGE_SHA=$(git ls-files -- build/docker/elasticsearch/9.x .github/workflows/elasticsearch-docker-9.yml | sort | xargs sha256sum | sha256sum | cut -d " " -f 1) | ||
| TAGS=(--tag "exceptionless/elasticsearch:$VERSION-sha256-$IMAGE_SHA") | ||
| if [[ "$GITHUB_REF" == "refs/heads/$DEFAULT_BRANCH" ]]; then | ||
| TAGS+=(--tag "exceptionless/elasticsearch:$VERSION" --tag "exceptionless/elasticsearch:latest") | ||
| fi | ||
| docker buildx build --platform linux/amd64,linux/arm64 --output "type=image,push=true" --file build/docker/elasticsearch/9.x/Dockerfile build/docker/elasticsearch/9.x "${TAGS[@]}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| # https://www.docker.elastic.co/ | ||
| FROM docker.elastic.co/elasticsearch/elasticsearch:8.19.15 | ||
| FROM docker.elastic.co/elasticsearch/elasticsearch:8.19.21 | ||
|
|
||
| RUN elasticsearch-plugin install -b mapper-size | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # https://www.docker.elastic.co/ | ||
| FROM docker.elastic.co/elasticsearch/elasticsearch:9.5.3 | ||
|
|
||
| RUN elasticsearch-plugin install -b mapper-size |
Uh oh!
There was an error while loading. Please reload this page.