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

Build multi platform image & Reorganize Makefiles #4943

Merged
merged 40 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
34c3004
Remove push-image and tag-image script
tung2744 Dec 12, 2024
bf8041a
Remove push-image and tag-image script in custom build
tung2744 Dec 12, 2024
aac6c18
Build multi platform images
tung2744 Dec 12, 2024
65eeb92
Setup docker container builder
tung2744 Dec 13, 2024
62e19c4
Always use build platform to build js assets
tung2744 Dec 13, 2024
1d38d58
Only build amd64 image in prs to reduce build time
tung2744 Dec 13, 2024
16c776d
Fix ssh key is cleaned up too early
tung2744 Dec 13, 2024
cbe4c96
Support BUILD_PLATFORMS in build-image of custombuild
tung2744 Dec 13, 2024
16181dd
Extract common scripts to common.mk
tung2744 Dec 13, 2024
a3a365e
Extract go-mod-outdated to another file
tung2744 Dec 13, 2024
7fa2269
Extract govulncheck to another file
tung2744 Dec 13, 2024
67e74ea
Build different arch image parallelly
tung2744 Dec 13, 2024
7fa51ed
Build different arch portal image parallelly
tung2744 Dec 13, 2024
5bf0931
Update custom build workflows
tung2744 Dec 13, 2024
00fab94
Do not build arm64 image in pr and do not tag image
tung2744 Dec 16, 2024
177d6f1
Use composite action to build image
tung2744 Dec 16, 2024
a45af4e
Fix custom build missing ssh forwarding
tung2744 Dec 16, 2024
0b63af2
Fix custom build scripts
tung2744 Dec 16, 2024
78a96c9
Reduce code duplication in custom build by composite action
tung2744 Dec 16, 2024
a8399c6
Fix EXTRA_BUILD_OPTS is not added to build options
tung2744 Dec 16, 2024
27e2952
Remove duplicated govulncheck
tung2744 Dec 16, 2024
24297f2
Remove extra quote in script
tung2744 Dec 16, 2024
dc7cb1a
Reorganize workflows
tung2744 Dec 16, 2024
af42e74
Build amd64 image in prs
tung2744 Dec 16, 2024
3331fed
Fix workflow names
tung2744 Dec 16, 2024
d390f69
Fix a typo in filename
tung2744 Dec 16, 2024
35f62cb
Write Makefile in idiomatic way
tung2744 Dec 17, 2024
f500227
Push arm64 and amd64 image layer by digest, and create manifest by th…
tung2744 Dec 17, 2024
dcd9abf
Use custom builder
tung2744 Dec 17, 2024
d8c5b17
Do not always push image
tung2744 Dec 17, 2024
b6804fd
Fix portal build step missing id
tung2744 Dec 18, 2024
ce2625a
Use digest in custom build scripts
tung2744 Dec 18, 2024
21b2bb3
Print metadata json for debug
tung2744 Dec 18, 2024
0dd8d21
Use a unique manifest name
tung2744 Dec 18, 2024
9a6a37f
Fix manifest path in custombuild
tung2744 Dec 18, 2024
8fbad47
Turn off provenance in image build
tung2744 Dec 18, 2024
f3f07aa
Use BUILDX_BUILDER instead of --builder
louischan-oursky Dec 19, 2024
6487fda
Remove unused input `builder` from action `build-custom-image`
louischan-oursky Dec 19, 2024
58e96ba
Write METADATA_FILE to temp dir
louischan-oursky Dec 19, 2024
0e94420
Document --provenance=false
louischan-oursky Dec 19, 2024
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
1 change: 1 addition & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ build-image:
@# Add --pull so that we are using the latest base image.
@# The build context is the parent directory
docker build --pull \
--provenance=false \
louischan-oursky marked this conversation as resolved.
Show resolved Hide resolved
--file ./cmd/$(TARGET)/Dockerfile \
$(BUILD_OPTS) \
--build-arg GIT_HASH=$(GIT_HASH) ${BUILD_CTX}
Expand Down