diff options
Diffstat (limited to '.github/workflows/base-images.yaml')
-rw-r--r-- | .github/workflows/base-images.yaml | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/.github/workflows/base-images.yaml b/.github/workflows/base-images.yaml index 674968e0c8..2ed2fd4992 100644 --- a/.github/workflows/base-images.yaml +++ b/.github/workflows/base-images.yaml @@ -14,22 +14,39 @@ jobs: steps: - name: CHECKOUT REPOSITORY uses: actions/checkout@v2 - - name: CREATE ERLANG+ELIXIR IMAGE (${{ matrix.erlang_version }}) - uses: docker/build-push-action@v1 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Login to DockerHub + uses: docker/login-action@v1 with: + registry: eu.gcr.io username: _json_key password: ${{ secrets.GCR_JSON_KEY }} - registry: eu.gcr.io - repository: cf-rabbitmq-core/erlang_elixir - dockerfile: ci/dockerfiles/${{ matrix.erlang_version }}/erlang_elixir - tags: ${{ matrix.erlang_version }} + - name: CREATE ERLANG+ELIXIR IMAGE (${{ matrix.erlang_version }}) + uses: docker/build-push-action@v2 + with: + push: true + file: ci/dockerfiles/${{ matrix.erlang_version }}/erlang_elixir + tags: eu.gcr.io/cf-rabbitmq-core/erlang_elixir:${{ matrix.erlang_version }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache - name: CREATE BASE CI IMAGE (${{ matrix.erlang_version }}) - uses: docker/build-push-action@v1 + uses: docker/build-push-action@v2 with: - username: _json_key - password: ${{ secrets.GCR_JSON_KEY }} - registry: eu.gcr.io - repository: cf-rabbitmq-core/ci-base - dockerfile: ci/dockerfiles/ci-base - build_args: ERLANG_VERSION=${{ matrix.erlang_version }},SECONDARY_UMBRELLA_GITREFS=v3.7.28 v3.8.9 - tags: ${{ matrix.erlang_version }} + push: true + file: ci/dockerfiles/ci-base + build-args: | + ERLANG_VERSION=${{ matrix.erlang_version }} + SECONDARY_UMBRELLA_GITREFS=v3.7.28 v3.8.9 + tags: eu.gcr.io/cf-rabbitmq-core/ci-base:${{ matrix.erlang_version }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache |