forked from opensearch-project/opensearch-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker build as part of checks for x64/arm64 (opensearch-project#601
) Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
4baf6d4
commit 31fbe72
Showing
3 changed files
with
50 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Docker Build and Test | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: Log level | ||
required: true | ||
default: warning | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
architecture: ['linux/amd64', 'linux/arm64'] | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: 'v0.9.1' | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: 'opensearch-benchmark-git' | ||
- name: Docker Build and Test on ${{ matrix.architecture }} | ||
run: | | ||
docker buildx version | ||
cp -a opensearch-benchmark-git/* ./ | ||
echo "Disable VERSION arg to enter docker build test mode" | ||
docker buildx build --platform ${{ matrix.architecture }} --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -f "docker/Dockerfile" . |
This file was deleted.
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