-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: enable experimental multi-arch build for linux/amd64 and linux/arm64 #1103
feat: enable experimental multi-arch build for linux/amd64 and linux/arm64 #1103
Conversation
🤖 OpenAI High-level SummaryThe changes introduce experimental multi-architecture builds for File Summaries
These changes aim to enhance the flexibility and compatibility of the Docker images by enabling builds for multiple architectures. Chat with 🤖 OpenAI Bot (
|
steps: | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The indentation of steps 72-75 is incorrect. It should be aligned with the previous step. Please fix the indentation.
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The indentation of steps 76-77 is incorrect. It should be aligned with the previous step. Please fix the indentation.
run: | | ||
eval "$(./scripts/semver-ci.sh)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The command eval "$(./scripts/semver-ci.sh)"
is not clear in terms of its purpose and what it does. Please provide more context or documentation for this command to improve clarity.
args = { | ||
SEMVER_FULL = SEMVER_FULL | ||
} | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/backend-server:latest", "${IMAGE_REGISTRY}/apitable/backend-server:${IMAGE_TAG}"] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The platforms
attribute has been added to specify the target architectures for building the Docker image. However, it seems that the args
attribute is no longer needed and can be removed. Additionally, it would be beneficial to add a comment explaining the purpose of the platforms
attribute.
args = { | |
SEMVER_FULL = SEMVER_FULL | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/backend-server:latest", "${IMAGE_REGISTRY}/apitable/backend-server:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/backend-server:latest", "${IMAGE_REGISTRY}/apitable/backend-server:${IMAGE_TAG}"] | |
} |
args = { | ||
SEMVER_FULL = SEMVER_FULL | ||
} | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/room-server:latest", "${IMAGE_REGISTRY}/apitable/room-server:${IMAGE_TAG}"] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
Similar to the previous change, the platforms
attribute has been added. The args
attribute can be removed, and a comment explaining the platforms
attribute would be helpful.
args = { | |
SEMVER_FULL = SEMVER_FULL | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/room-server:latest", "${IMAGE_REGISTRY}/apitable/room-server:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/room-server:latest", "${IMAGE_REGISTRY}/apitable/room-server:${IMAGE_TAG}"] | |
} |
args = { | ||
SEMVER_FULL = SEMVER_FULL | ||
} | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/web-server:latest", "${IMAGE_REGISTRY}/apitable/web-server:${IMAGE_TAG}"] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The platforms
attribute has been added again. Remove the args
attribute and consider adding a comment to explain the purpose of the platforms
attribute.
args = { | |
SEMVER_FULL = SEMVER_FULL | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/web-server:latest", "${IMAGE_REGISTRY}/apitable/web-server:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/web-server:latest", "${IMAGE_REGISTRY}/apitable/web-server:${IMAGE_TAG}"] | |
} |
args = { | ||
SEMVER_FULL = SEMVER_FULL | ||
} | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/init-db:latest", "${IMAGE_REGISTRY}/apitable/init-db:${IMAGE_TAG}"] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The platforms
attribute has been added once more. Remove the args
attribute and consider adding a comment to clarify the intention of the platforms
attribute.
args = { | |
SEMVER_FULL = SEMVER_FULL | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/init-db:latest", "${IMAGE_REGISTRY}/apitable/init-db:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/init-db:latest", "${IMAGE_REGISTRY}/apitable/init-db:${IMAGE_TAG}"] | |
} |
args = { | ||
SEMVER_FULL = SEMVER_FULL | ||
} | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/openresty:latest", "${IMAGE_REGISTRY}/apitable/openresty:${IMAGE_TAG}"] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The platforms
attribute has been added. Remove the args
attribute and consider adding a comment to explain the purpose of the platforms
attribute.
args = { | |
SEMVER_FULL = SEMVER_FULL | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/openresty:latest", "${IMAGE_REGISTRY}/apitable/openresty:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64", "linux/arm64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/openresty:latest", "${IMAGE_REGISTRY}/apitable/openresty:${IMAGE_TAG}"] | |
} |
SEMVER_FULL = SEMVER_FULL | ||
IMAGE_TAG = IMAGE_TAG | ||
} | ||
platforms = ["linux/amd64"] | ||
tags = ["${IMAGE_REGISTRY}/apitable/all-in-one:latest", "${IMAGE_REGISTRY}/apitable/all-in-one:${IMAGE_TAG}"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 OpenAI
The platforms
attribute has been added. Remove the args
attribute and consider adding a comment to clarify the intention of the platforms
attribute.
SEMVER_FULL = SEMVER_FULL | |
IMAGE_TAG = IMAGE_TAG | |
} | |
platforms = ["linux/amd64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/all-in-one:latest", "${IMAGE_REGISTRY}/apitable/all-in-one:${IMAGE_TAG}"] | |
} | |
platforms = ["linux/amd64"] | |
tags = ["${IMAGE_REGISTRY}/apitable/all-in-one:latest", "${IMAGE_REGISTRY}/apitable/all-in-one:${IMAGE_TAG}"] | |
} |
Building multi-arch docker image via QEMU emulation is pretty slow, but let's test the build process, if they are too slow maybe we will disable them.
References:
Summary by OpenAI
Release Notes:
linux/amd64
andlinux/arm64
have been enabled in Dockerfile build targets.linux/amd64
andlinux/arm64
.