Skip to content

Commit

Permalink
chore(cross): Push base images without python
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jul 15, 2024
1 parent 7009a24 commit b908ab0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cross-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ 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)
uses: docker/bake-action@v5
with:
workdir: ./rust/cubestore/cross
if: ${{ matrix.target != 'x86_64-unknown-linux-musl' }}
targets: ${{ matrix.target }}-python
push: ${{ github.ref == 'refs/heads/master' }}
3 changes: 1 addition & 2 deletions rust/cubestore/cross/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b908ab0

Please sign in to comment.