Omit specifying Caddy version to always use latest #1020
No reviewers
Labels
No Label
a11y
ActivityPub
admin
API
backend
bug
community
conflicting
contribution welcome
deployment
documentation
duplicate
enhancement
frontend
good first issue
help wanted
high priority
instance config
low priority
mobile
moderation
more infomation needed
needs feedback
pr pending
project setup
question
search
security
translation
translations update needed
UI/UX
upstream
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kbin/kbin-core#1020
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "szsz/kbin-core:caddy-no-explicit-version"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Mmm. Pinning versions is generally a best practice? It means we don't get weird breakage when caddy decides to introduce non-backwards compatible changes and our CI falls over or worse still peoples production environments fall over.
Actually best practice seems to be now to directly download caddy binary from its api:
https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com/dunglas/mercure/caddy&p=github.com/dunglas/vulcain/caddy
instead of building it from source
From what I remember, in the dunglas docker, it was changed to a specific version because sometimes the mercure package wasn't ready on time and there was an error during the build. You need to keep a close eye on this.
Currently
FROM caddy:2.7-builder-alpine
doesnt limit patch version so no wonder it breaks when new version comes upEither patch version should be set in both places (FROM and xcaddy)
or download from api like in newest symfony docker as I mentioned above: https://github.com/dunglas/symfony-docker/blob/main/Dockerfile#L115
IIRC it broke on the 2.6 > 2.7 transition. Which is to be expected under semver. We went from specifying latest to 2.6 specifically due to that. Then bumped it to 2.7.3 when the plugin was updated.