Skip to content

Commit

Permalink
CI: check Dockerfiles via Dependabot (see #3)
Browse files Browse the repository at this point in the history
Based on original pull request #1 by @reneleonhardt. Thanks!
  • Loading branch information
vhotspur authored Aug 20, 2024
2 parents 45d41a6 + 60f8e23 commit 6f33dfc
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 0 deletions.
140 changes: 140 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@

version: 2

# Multiple directories not working properly
# See https://github.com/dependabot/dependabot-core/issues/2178

updates:


- package-ecosystem: docker
directory: /buildenv-openjdk8
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk8-with-ant-gcc
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk9
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk10
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk11
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk11-with-ant-gcc
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk12
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk13
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk14
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk15
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk16
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk17
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk18
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk19
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk20
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk21
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk22
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openjdk23-ea
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openj9-openjdk8
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openj9-openjdk11
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openj9-openjdk17
schedule:
interval: weekly


- package-ecosystem: docker
directory: /buildenv-openj9-openjdk21
schedule:
interval: weekly

21 changes: 21 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,22 @@
'''

GITHUB_DEPENDABOT_FILENAME = '.github/dependabot.yml'
GITHUB_DEPENDABOT_HEADER = '''
version: 2
# Multiple directories not working properly
# See https://github.com/dependabot/dependabot-core/issues/2178
updates:
'''
GITHUB_DEPENDABOT_TEMPLATE = '''
- package-ecosystem: docker
directory: /buildenv-{name}
schedule:
interval: weekly
'''


def replace_shell_pseudo_variables(where, variables):
if not variables:
Expand Down Expand Up @@ -318,5 +334,10 @@ def main():
for version_config in VERSIONS:
print(GITHUB_WORKFLOW_TEMPLATE.format(**version_config), file=f)

with open(GITHUB_DEPENDABOT_FILENAME, 'w') as f:
print(GITHUB_DEPENDABOT_HEADER, file=f)
for version_config in VERSIONS:
print(GITHUB_DEPENDABOT_TEMPLATE.format(**version_config), file=f)

if __name__ == '__main__':
main()

0 comments on commit 6f33dfc

Please sign in to comment.