Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Configure dependabot for the builder
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Dec 19, 2023
1 parent 6df39c8 commit 0e9f688
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@ updates:
directory: /
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/debian"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: "docker"
directory: "/gardenlinux"
schedule:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
11 changes: 9 additions & 2 deletions debian/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail
shopt -s nullglob

container_image=ghcr.io/gardenlinux/builder:301ce9f70045c001c5d724c2f9d1a9503e1d5ccc
container_image=localhost/builder
container_engine=podman
target_dir=.build

Expand Down Expand Up @@ -75,7 +75,14 @@ done

if [ "$container_image" = localhost/builder ]; then
dir="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")"
"$container_engine" build -t "$container_image" "$dir"
# Build from 'builder.dockerfile' if that exists, otherwise the default file name will be 'Dockerfile' or 'Containerfile'.
# It is recommended to call the file 'builder.dockerfile' to make it's intention clear.
# That file might only contain a single line 'FROM ghcr.io/gardenlinux/builder:...' which can be updated via dependabot.
if [[ -f builder.dockerfile ]]; then
"$container_engine" build -t "$container_image" -f builder.dockerfile "$dir"
else
"$container_engine" build -t "$container_image" "$dir"
fi
fi

repo="$(./get_repo)"
Expand Down
3 changes: 3 additions & 0 deletions debian/builder.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dependency management via Dependabot

FROM ghcr.io/gardenlinux/builder:v0.1
11 changes: 9 additions & 2 deletions gardenlinux/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail
shopt -s nullglob

container_image=ghcr.io/gardenlinux/builder:002a2ff4d1dc6a39d04543b6a6e92a1465d9e226
container_image=localhost/builder
container_engine=podman
target_dir=.build

Expand Down Expand Up @@ -75,7 +75,14 @@ done

if [ "$container_image" = localhost/builder ]; then
dir="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")"
"$container_engine" build -t "$container_image" "$dir"
# Build from 'builder.dockerfile' if that exists, otherwise the default file name will be 'Dockerfile' or 'Containerfile'.
# It is recommended to call the file 'builder.dockerfile' to make it's intention clear.
# That file might only contain a single line 'FROM ghcr.io/gardenlinux/builder:...' which can be updated via dependabot.
if [[ -f builder.dockerfile ]]; then
"$container_engine" build -t "$container_image" -f builder.dockerfile "$dir"
else
"$container_engine" build -t "$container_image" "$dir"
fi
fi

repo="$(./get_repo)"
Expand Down
3 changes: 3 additions & 0 deletions gardenlinux/builder.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dependency management via Dependabot

FROM ghcr.io/gardenlinux/builder:v0.1

0 comments on commit 0e9f688

Please sign in to comment.