Skip to content

Commit

Permalink
Merge pull request #1427 from sgibson91/repo2docker-bumps
Browse files Browse the repository at this point in the history
Automate bumping of repo2docker image in BinderHub helm chart
  • Loading branch information
sgibson91 authored Jun 17, 2022
2 parents 0eea154 + 8f13120 commit 4c84f21
Showing 1 changed file with 21 additions and 16 deletions.
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 off bumping of Pangeo images as per https://github.com/2i2c-org/infrastructure/issues/1240#issuecomment-1151212986
# - 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

0 comments on commit 4c84f21

Please sign in to comment.