From 10910f30666320bc0798b19209991b5b3b92c42b Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Mon, 15 Jul 2024 17:39:38 +0900 Subject: [PATCH] chore(cross): Push base images without python (#8460) --- .github/workflows/cross-images.yml | 9 ++++++++- rust/cubestore/cross/docker-bake.hcl | 3 +-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cross-images.yml b/.github/workflows/cross-images.yml index f6fae67b559b3..31fd5eece3eb3 100644 --- a/.github/workflows/cross-images.yml +++ b/.github/workflows/cross-images.yml @@ -37,7 +37,14 @@ jobs: uses: docker/setup-buildx-action@v3 with: buildkitd-config: .github/buildkitd.toml - - name: Build and push + - name: Build & push (base images) + uses: docker/bake-action@v5 + with: + workdir: ./rust/cubestore/cross + targets: ${{ matrix.target }} + push: ${{ github.ref == 'refs/heads/master' }} + - name: Build & push (with python) + if: ${{ matrix.target != 'x86_64-unknown-linux-musl' }} uses: docker/bake-action@v5 with: workdir: ./rust/cubestore/cross diff --git a/rust/cubestore/cross/docker-bake.hcl b/rust/cubestore/cross/docker-bake.hcl index 14b43963aea2c..8f86bcbb24400 100644 --- a/rust/cubestore/cross/docker-bake.hcl +++ b/rust/cubestore/cross/docker-bake.hcl @@ -52,8 +52,7 @@ target "aarch64-unknown-linux-gnu-python" { platforms = ["linux/amd64"] } -# We use -python prefix for ci -target "x86_64-unknown-linux-musl-python" { +target "x86_64-unknown-linux-musl" { context = "." dockerfile = "x86_64-unknown-linux-musl.Dockerfile" args = {