Skip to content

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

Add docker build as part of checks for x64/arm64

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

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
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - uses: actions/checkout@v4
# with:
# repository: 'opensearch-project/opensearch-build'
# ref: 'main'
- uses: actions/checkout@v4
with:

Check failure on line 35 in .github/workflows/docker-test.yml

View workflow run for this annotation

GitHub Actions / Docker Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/docker-test.yml (Line: 35, Col: 14): Unexpected value ''
# path: 'docker/ci/opensearch-benchmarks'
- name: Docker Build
# working-directory: 'docker/ci'
run: |
docker buildx version
docker buildx build --platform "linux/amd64,linux/arm64" --build-arg VERSION=`cat version.txt` --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` --build-arg NOTES="test-docker-build" -t "opensearchstaging/opensearch-benchmark:`cat version.txt`" -f "docker/Dockerfile" .
# cp -a opensearch-benchmarks/* ./
# ./build-image-multi-arch.sh