Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ updates:
- "*"
commit-message:
prefix: "ci"

- package-ecosystem: docker
directory: /docker/peribolos
schedule:
interval: monthly
cooldown:
default-days: 7
commit-message:
prefix: "ci"
6 changes: 6 additions & 0 deletions docker/peribolos/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Pin of the peribolos image consumed by scripts/run-peribolos.sh.
#
# This Dockerfile exists solely to give Dependabot's `docker` ecosystem a
# file to watch — see .github/dependabot.yml. The script parses the FROM
# line below; it does not run `docker build`.
FROM us-docker.pkg.dev/k8s-infra-prow/images/peribolos@sha256:6978d5adbb75487cbdb9088eef1437acd8a93a6e75f01abe76c5d0fca853bba8
12 changes: 11 additions & 1 deletion scripts/run-peribolos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ if [[ $MODE == "apply" && ${GITHUB_ACTIONS:-} == "true" && ${GITHUB_REF:-} != "r
exit 1
fi

PERIBOLOS_IMAGE="us-docker.pkg.dev/k8s-infra-prow/images/peribolos:latest"
# Peribolos image is pinned by digest in docker/peribolos/Dockerfile so
# Dependabot's `docker` ecosystem (see .github/dependabot.yml) can open PRs
# when a new digest is available. Parse the FROM line so the digest lives
# in exactly one place.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PERIBOLOS_DOCKERFILE="$SCRIPT_DIR/../docker/peribolos/Dockerfile"
PERIBOLOS_IMAGE="$(awk '/^FROM / {print $2; exit}' "$PERIBOLOS_DOCKERFILE")"
if [[ -z $PERIBOLOS_IMAGE ]]; then
echo "ERROR: failed to parse FROM line from $PERIBOLOS_DOCKERFILE" >&2
exit 1
fi

if [[ -z ${GITHUB_TOKEN:-} ]]; then
echo "ERROR: GITHUB_TOKEN environment variable is required." >&2
Expand Down
Loading