ci: build and push multi-arch images
This commit is contained in:
4
.github/workflows/check.yaml
vendored
4
.github/workflows/check.yaml
vendored
@@ -332,6 +332,9 @@ jobs:
|
||||
type=semver,pattern={{major}}
|
||||
type=sha
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
@@ -347,6 +350,7 @@ jobs:
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
ARG RUSTC_VERSION=1.55.0
|
||||
ARG RUSTC_VERSION=1.56.0
|
||||
|
||||
# cargo-chef helps with caching dependencies between builds
|
||||
FROM lukemathwalker/cargo-chef:latest-rust-${RUSTC_VERSION} AS chef
|
||||
FROM docker.io/library/rust:${RUSTC_VERSION}-slim AS chef
|
||||
WORKDIR /app
|
||||
RUN cargo install --locked cargo-chef
|
||||
|
||||
FROM chef AS planner
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user