Compare commits
5 Commits
61c5b322dd
...
ca986633b1
| Author | SHA1 | Date | |
|---|---|---|---|
| ca986633b1 | |||
| 19e9bba3cc | |||
| 0d75c08f6a | |||
| 6a2f207d8d | |||
| b79bb06130 |
+8
-10
@@ -266,17 +266,15 @@ publish_images() {
|
|||||||
version=$(read_version)
|
version=$(read_version)
|
||||||
|
|
||||||
# docker buildx --push uses Docker's own credential store, independent of
|
# docker buildx --push uses Docker's own credential store, independent of
|
||||||
# skopeo. Verify auth early to get a clear error before a long build.
|
# skopeo. Prompt once before the (long) build so the user isn't surprised
|
||||||
echo -e "${BLUE}Checking registry authentication...${NC}"
|
# by an auth failure at the very end.
|
||||||
local registry_host="${REGISTRY%%/*}"
|
local registry_host="${REGISTRY%%/*}"
|
||||||
if ! docker login "$registry_host" >/dev/null 2>&1; then
|
echo -e "${BLUE}Authenticating to ${registry_host} (required to push)...${NC}"
|
||||||
echo -e "${YELLOW}Not logged in to ${registry_host}. Running docker login...${NC}"
|
docker login "$registry_host" || {
|
||||||
docker login "$registry_host" || {
|
echo "Error: authentication to ${registry_host} failed." >&2
|
||||||
echo "Error: authentication to ${registry_host} failed." >&2
|
echo "Run: docker login ${registry_host}" >&2
|
||||||
echo "Run: docker login ${registry_host}" >&2
|
exit 1
|
||||||
exit 1
|
}
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${BLUE}Publishing images (version ${version}) to ${REGISTRY}${NC}"
|
echo -e "${BLUE}Publishing images (version ${version}) to ${REGISTRY}${NC}"
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ project:
|
|||||||
post-render:
|
post-render:
|
||||||
- scripts/copy-to-web.sh
|
- scripts/copy-to-web.sh
|
||||||
|
|
||||||
|
execute:
|
||||||
|
freeze: auto
|
||||||
|
|
||||||
format:
|
format:
|
||||||
html:
|
html:
|
||||||
toc: false
|
toc: false
|
||||||
|
|||||||
Reference in New Issue
Block a user