Skip to content

Add docker build as part of checks for x64/arm64 #10

Add docker build as part of checks for x64/arm64

Add docker build as part of checks for x64/arm64 #10

Workflow file for this run

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
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
- name: Docker Build
run: |
docker buildx version
echo "Disable VERSION arg to enter docker build test mode"
docker buildx build --platform "linux/amd64" --build-arg FILE_PATH="." --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -f "docker/Dockerfile" .
# docker buildx build --platform "linux/amd64,linux/arm64" --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -t "opensearchstaging/opensearch-benchmark:`cat version.txt`" -f "docker/Dockerfile" .