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

Add OCI image build to Pipeline #18

Closed
clementguillot opened this issue Feb 8, 2024 · 0 comments · Fixed by #36
Closed

Add OCI image build to Pipeline #18

clementguillot opened this issue Feb 8, 2024 · 0 comments · Fixed by #36

Comments

@clementguillot
Copy link
Owner

clementguillot commented Feb 8, 2024

Description

As our application is more likely to be deployed in K8s (or at least Docker/compose), we need to build OCI images.

To optimize CI build, we can just build images while in PR, and then, build and push artifact to GHCR while on main.

Since we use a "hack" to build our application by removing --link-at-build-time argument of native-image, we can't simply rely on Quarkus built-in commands like :build -Dquarkus.native.container-build=true -Dquarkus.package.type=native.
We need to do a multi-stage build by sending to context our patched native-image.args.

Refer to Dockerfile.mandrel-builder for full details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant