You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build: Make access key a run-time ENV instead of build-time ARG
This has a number of benefits:
* Easier and more confident testing (the same image is tested and
can then be deployed the same way).
* No rebuild is needed to change between the modes, which allows for
faster recovery and avoids e.g. having to accept new commits or
changes to upstream base images as part of a rebuild when all you
want is to switch modes.
* The resulting image contains no private information, thus safe
to publish to a public container registry. As example, I've enabled
publishing to GitHub's ghcr.io registry, for use in another
experiment. This can be removed later if we don't need it.
Ref https://github.com/jquery/infrastructure/issues/474.
1. At a hosting platform of your choosing, build a container from the Dockerfile in this repository, and pass the CDN access key as build arguments.
82
+
1. At a hosting platform of your choosing, build or pull the container, and pass the CDN access key as run environment variable.
64
83
1. Finally, configure the CDN to use the container address as its origin, with special handling to augment origin pulls with a `Host: code.jquery.com` header, and a `x-cdn-access` header with the access key.
0 commit comments