diff --git a/.github/workflows/elasticsearch-image-builder.yml b/.github/workflows/elasticsearch-image-builder.yml index 27fb4f50..a4cb1efe 100644 --- a/.github/workflows/elasticsearch-image-builder.yml +++ b/.github/workflows/elasticsearch-image-builder.yml @@ -1,24 +1,25 @@ -name: Build Docker Images -on: - push: - paths: - - "images/elasticsearch/**" - - ".github/workflows/**" -jobs: - build: - runs-on: ubuntu-20.04 - strategy: - matrix: - elastic-version: - - "7.17.15" - env: - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 100 - - name: "Build elasticsearch@${{ matrix.elastic-version }}" - run: | - cd images/elasticsearch/${{ matrix.elastic-version }} - curl "https://raw.githubusercontent.com/pelias/ci-tools/master/build-docker-images.sh" | bash - +# name: Build Docker Images +# on: +# push: +# paths: +# - "images/elasticsearch/**" +# - ".github/workflows/**" +# jobs: +# build: +# if: github.ref == 'refs/heads/master' && needs.unit-tests.result == 'success' +# runs-on: ubuntu-20.04 +# strategy: +# matrix: +# elastic-version: +# - "7.17.15" +# env: +# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} +# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} +# steps: +# - uses: actions/checkout@v2 +# with: +# fetch-depth: 100 +# - name: "Build elasticsearch@${{ matrix.elastic-version }}" +# run: | +# cd images/elasticsearch/${{ matrix.elastic-version }} +# curl "https://raw.githubusercontent.com/pelias/ci-tools/master/build-docker-images.sh" | bash -