-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (34 loc) · 1.35 KB
/
update-default-image-in-notebooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@v4
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@v5
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."