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
20 changes: 0 additions & 20 deletions modules/repository-base/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ $(error repo_name is not set)
endif

repository_base_dir := $(dir $(lastword $(MAKEFILE_LIST)))/base/
repository_base_dependabot_dir := $(dir $(lastword $(MAKEFILE_LIST)))/base-dependabot/

ifdef repository_base_no_dependabot
.PHONY: generate-base
## Generate base files in the repository
## @category [shared] Generate/ Verify
Expand All @@ -29,23 +27,5 @@ generate-base:
find . -type f | while read file; do \
sed "s|{{REPLACE:GH-REPOSITORY}}|$(repo_name:github.com/%=%)|g" "$$file" > "$(CURDIR)/$$file"; \
done
else
.PHONY: generate-base
## Generate base files in the repository
## @category [shared] Generate/ Verify
generate-base:
# TODO(erikgb): Remove; just a temporary command to clean out Dependabot files
rm -f ./.github/dependabot.yaml
cp -r $(repository_base_dir)/. ./
cd $(repository_base_dir) && \
find . -type f | while read file; do \
sed "s|{{REPLACE:GH-REPOSITORY}}|$(repo_name:github.com/%=%)|g" "$$file" > "$(CURDIR)/$$file"; \
done
cp -r $(repository_base_dependabot_dir)/. ./
cd $(repository_base_dependabot_dir) && \
find . -type f | while read file; do \
sed "s|{{REPLACE:GH-REPOSITORY}}|$(repo_name:github.com/%=%)|g" "$$file" > "$(CURDIR)/$$file"; \
done
endif

shared_generate_targets += generate-base
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base-dependabot/.github/renovate.json5 instead.
// Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/renovate.json5 instead.

{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
# Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base-dependabot/.github/workflows/renovate.yaml instead.
# Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/workflows/renovate.yaml instead.

name: Renovate
on:
Expand Down
Loading