Skip to content

Version 0.21.0

Version 0.21.0 #25

name: Update default image in notebooks
on:
release:
types: [published]
jobs:
update-notebooks-default-image:
runs-on: ubuntu-latest
steps:
- name: Get release tag
run: |
echo "NEW_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Get image name
run: |
echo "NEW_IMAGE=renku/renkulab-py:3.9-${{ env.NEW_VERSION }}" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
with:
repository: SwissDataScienceCenter/renku-notebooks
ref: main
fetch-depth: 1
- name: Update image version
run: |
sed -i -e 's|defaultSessionImage:.*|defaultSessionImage: "${{ env.NEW_IMAGE }}"|' ./helm-chart/renku-notebooks/values.yaml
- name: Submit PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
commit-message: "chore(app): Update default session image to ${{ env.NEW_IMAGE }}"
title: "chore(app): Update default session image to ${{ env.NEW_IMAGE }}"
branch: "chore-update-default-image-${{ env.NEW_VERSION }}"
delete-branch: true
author: "Renku Bot <[email protected]>"
committer: "Renku Bot <[email protected]>"
body: "Generated automatically on a new release in renkulab-docker to update the default image used when launching a user session."