Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate bumping of repo2docker image in BinderHub helm chart #1427

Merged
merged 3 commits into from
Jun 17, 2022
Merged
Changes from 2 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
37 changes: 21 additions & 16 deletions .github/workflows/bump-image-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Bump Image Tags

on:
workflow_dispatch:
# schedule:
# - cron: "0 0 * * 1" # Run at 00:00 UTC every Monday
schedule:
- cron: "0 0 * * 1" # Run at 00:00 UTC every Monday

env:
team_reviewers: tech-team
Expand All @@ -18,20 +18,25 @@ jobs:
include:
# For each new config_path to monitor, add a new item in this matrix.
# The Action can read multiple paths to images, but not multiple config files.
- name: "pangeo-hubs common singleuser image"
config_path: "config/clusters/pangeo-hubs/common.values.yaml"
# The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'
- name: "m2lines common singleuser/PyTorch/Tensorflow"
config_path: "config/clusters/m2lines/common.values.yaml"
# The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
# If the ordering of profileList changes, update the index in this expression
images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[4].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[5].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'
- name: "leap common singleuser/pangeo-ml-notebook"
config_path: "config/clusters/leap/common.values.yaml"
# The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
# If the ordering of profileList changes, update the index in this expression
images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[4].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'
- name: "BinderHub/repo2docker bump"
config_path: "helm-charts/binderhub/values.yaml"
images_info: '{"values_path": ".binderhub.config.BinderHub.build_image"}'

# Turn of bumping of Pangeo images as per https://github.com/2i2c-org/infrastructure/issues/1240#issuecomment-1151212986
sgibson91 marked this conversation as resolved.
Show resolved Hide resolved
# - name: "pangeo-hubs common singleuser image"
# config_path: "config/clusters/pangeo-hubs/common.values.yaml"
# # The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
# images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'
# - name: "m2lines common singleuser/PyTorch/Tensorflow"
# config_path: "config/clusters/m2lines/common.values.yaml"
# # The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
# # If the ordering of profileList changes, update the index in this expression
# images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[4].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[5].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'
# - name: "leap common singleuser/pangeo-ml-notebook"
# config_path: "config/clusters/leap/common.values.yaml"
# # The regexpr attribute will ensure we only bump tags in the form YYYY.MM.DD
# # If the ordering of profileList changes, update the index in this expression
# images_info: '[{"values_path": ".basehub.jupyterhub.singleuser.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}, {"values_path": ".basehub.jupyterhub.singleuser.profileList[4].kubespawner_override.image", "regexpr": "[0-9]{4}.[0-9]{2}.[0-9]{2}"}]'

steps:
# We want tests to be run on the Pull Request that gets opened by the next step,
Expand Down