diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml new file mode 100644 index 000000000..437935f94 --- /dev/null +++ b/.github/workflows/docker-test.yml @@ -0,0 +1,32 @@ +name: Publish OpenSearch Benchmark Docker Image +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 }} + - name: Build and push + run: | + docker buildx version diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index d91850b61..000000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Publish OpenSearch Benchmark Docker Image -on: - push: - tags: - - "v*.*.*" - 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@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - platforms: linux/amd64,linux/arm64 - file: docker/Dockerfile - context: "{{defaultContext}}:." - push: true - tags: opensearchstaging/opensearch-benchmark:latest,opensearchstaging/opensearch-benchmark:0.2.0 \ No newline at end of file