Skip to content

Commit

Permalink
feat: make published Docker images multi-platform, add linux/arm64 plat
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jul 10, 2024
1 parent afe5aea commit 5afdc43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release-step-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
steps:
- id: buildkite-run
name: Run Release
uses: elastic/oblt-actions/buildkite/run@v1.5.0
uses: elastic/oblt-actions/buildkite/run@v1
with:
pipeline: "elastic-otel-java-release"
token: ${{ secrets.BUILDKITE_TOKEN }}
Expand All @@ -90,7 +90,7 @@ jobs:
dry_run=${{ inputs.dry_run || 'false' }}
TARBALL_FILE=${{ env.TARBALL_FILE }}
- uses: elastic/oblt-actions/buildkite/download-artifact@v1.5.0
- uses: elastic/oblt-actions/buildkite/download-artifact@v1
with:
build-number: ${{ steps.buildkite-run.outputs.number }}
path: ${{ env.TARBALL_FILE }}
Expand All @@ -106,15 +106,15 @@ jobs:
subject-path: "${{ github.workspace }}/**/*.jar"

- if: ${{ success() && ! inputs.dry_run }}
uses: elastic/oblt-actions/slack/send@v1.5.0
uses: elastic/oblt-actions/slack/send@v1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-agent-java"
message: |
:runner: [${{ github.repository }}] Release *${{ github.ref_name }}* has been triggered in Buildkite: (<${{ steps.buildkite-run.outputs.build }}|build>)
- if: ${{ failure() && ! inputs.dry_run }}
uses: elastic/oblt-actions/slack/send@v1.5.0
uses: elastic/oblt-actions/slack/send@v
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-agent-java"
Expand Down Expand Up @@ -143,6 +143,9 @@ jobs:
- name: Get latest tag
run: echo "LATEST_TAG=$(git tag --list --sort=version:refname "v*" | grep -v RC | sed s/^v// | tail -n 1)" >> "${GITHUB_ENV}"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0

- name: Log in to the Elastic Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
Expand Down Expand Up @@ -170,6 +173,7 @@ jobs:
with:
context: .
file: "docker/Dockerfile"
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- id: buildkite-run
name: Run Deploy
uses: elastic/oblt-actions/buildkite/run@v1.5.0
uses: elastic/oblt-actions/buildkite/run@v1
with:
commit: ${{ github.ref_name }}
pipeline: "elastic-otel-java-snapshot"
Expand All @@ -63,7 +63,7 @@ jobs:
dry_run=${{ inputs.dry_run || 'false' }}
TARBALL_FILE=${{ env.TARBALL_FILE }}
- uses: elastic/oblt-actions/buildkite/download-artifact@v1.5.0
- uses: elastic/oblt-actions/buildkite/download-artifact@v1
with:
build-number: ${{ steps.buildkite-run.outputs.number }}
path: ${{ env.TARBALL_FILE }}
Expand All @@ -79,7 +79,7 @@ jobs:
subject-path: "${{ github.workspace }}/**/*.jar"

- if: ${{ failure() }}
uses: elastic/oblt-actions/slack/send@v1.5.0
uses: elastic/oblt-actions/slack/send@v1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-agent-java"
Expand Down

0 comments on commit 5afdc43

Please sign in to comment.