Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: build cross-platform images #357

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:

release:
docker:
- image: circleci/node:16.13.1
- image: cimg/base:stable
environment:
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
BUILDX_PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
working_directory: ~/app
steps:
- checkout
Expand All @@ -45,15 +49,18 @@ jobs:
./.circleci/release_name.bash
source $BASH_ENV
- setup_remote_docker
- run: docker build -t oryd/kratos-selfservice-ui-node:latest .
- run:
docker tag oryd/kratos-selfservice-ui-node:latest
oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG
name: Set up Docker Buildx
command: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch-builder --use
- run:
docker login --username "$DOCKER_USERNAME" --password
"$DOCKER_PASSWORD"
- run: docker push oryd/kratos-selfservice-ui-node:latest
- run: docker push oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG
- run:
docker buildx build --platform $BUILDX_PLATFORMS -t
oryd/kratos-selfservice-ui-node:latest -t
oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG --push .

workflows:
tbr:
Expand Down
Loading