-
Notifications
You must be signed in to change notification settings - Fork 29
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 images in GitHub Actions #3
Conversation
PR TODOs
|
This comment has been minimized.
This comment has been minimized.
I have validated all 3 images like this:
🚢 All are looking good! |
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.
Sounds good overall. Couple nits:
- Please change all
docker.io/errordeveloper
todocker.io/cilium
? - Please change
linuxkit/binfmt
todocker.io/linuxkit/binfmt
? - Clean up commits and squash some of them together.
@aanm thanks for the review! Using I've started squashing the commits already, will definitely squash a few more! |
@errordeveloper the following secrets and repositories were added / created:
|
@aanm could you please create |
created
|
- add APL 2 - add Makefile - add GitHub Actions workflows - build and push new images on commits to master - check dockerfile and shell scripts with hadolint and shellcheck on pull-requests - add image tag genrator script - add `build-image.sh` to wrap conditional build logic, as handing exit codes in a makefile is quite tedious, it's easier to use a script - add maker image - it contains make, buildx and other core dependencies required to run containerised builds independently of what version of Docker daemon and client is avalaible - include `docker-credential-env` to avoids having to store passwords in `config.json` on disk, which usually happens when `docker login` is ran without some sort of keychain provider configured - include shellcheck and hadolint - add compilers, llvm, bpftool and iproute2 images - remove old Dockerfiles Signed-off-by: Ilya Dmitrichenko <[email protected]>
@aanm I've renamed all images and squashed the commits, please merge! |
Signed-off-by: Ilya Dmitrichenko <[email protected]>
Commit 61d38f6 ("Build images in GitHub Actions (#3)") pointed bpftool back to an old revision which breaks the expectations from cilium-runtime. Move it forward in time to something recent. Signed-off-by: Daniel Borkmann <[email protected]>
Commit 61d38f6 ("Build images in GitHub Actions (#3)") pointed bpftool back to an old revision which breaks the expectations from cilium-runtime. Move it forward in time to something recent. Signed-off-by: Daniel Borkmann <[email protected]>
BPF bytecode is the target, it is independent of CPU architecture. The configuration was originally overlooked in cilium#3. Fixes: cilium#31 Signed-off-by: Ilya Dmitrichenko <[email protected]>
BPF bytecode is the target, it is independent of CPU architecture. The configuration was originally overlooked in #3. Fixes: #31 Signed-off-by: Ilya Dmitrichenko <[email protected]>
Features:
arm64
buildx
to create proper multiarch imagesFROM
statementsdocker login
, which is insecure as it stores a token in plain textDockerfiles
and shell script to detect issues earlyFollow-up features (will file issues):
FROM
statements with new digests - automate updatingFROM
statements with new digests #9