File tree Expand file tree Collapse file tree 7 files changed +15
-20
lines changed Expand file tree Collapse file tree 7 files changed +15
-20
lines changed Original file line number Diff line number Diff line change 34
34
# ref: https://hub.docker.com/orgs/jupyterhub
35
35
36
36
publish :
37
- runs-on : ubuntu-20 .04
37
+ runs-on : ubuntu-22 .04
38
38
steps :
39
39
- uses : actions/checkout@v3
40
40
with :
@@ -44,34 +44,29 @@ jobs:
44
44
45
45
- uses : actions/setup-python@v4
46
46
with :
47
- python-version : " 3.8 "
47
+ python-version : " 3.11 "
48
48
49
- - name : store whether we are publishing the chart
49
+ - name : Decide to publish or not
50
50
id : publishing
51
51
shell : python
52
- env :
53
- REPO : ${{ github.repository }}
54
- EVENT : ${{ github.event_name }}
55
- REF : ${{ github.event.ref }}
56
52
run : |
57
53
import os
58
- repo = os.environ["REPO"]
59
- event = os.environ["EVENT"]
60
- ref = os.environ["REF"]
54
+ repo = "${{ github.repository }}"
55
+ event = "${{ github.event_name }}"
56
+ ref = "${{ github.event.ref }}"
61
57
publishing = ""
62
58
if (
63
59
repo == "jupyterhub/zero-to-jupyterhub-k8s"
64
60
and event == "push"
65
61
and (
66
- # any tag
67
62
ref.startswith("refs/tags/")
68
- # or default branch
69
63
or ref == "refs/heads/main"
70
64
)
71
65
):
72
66
publishing = "true"
73
67
print("Publishing chart")
74
- print(f"::set-output name=publishing::{publishing}")
68
+ with open(os.environ["GITHUB_OUTPUT"], "a") as f:
69
+ f.write(f"publishing={publishing}\n")
75
70
76
71
- name : Set up QEMU (for docker buildx)
77
72
uses : docker/setup-qemu-action@v2
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
create-release :
12
- runs-on : ubuntu-latest
12
+ runs-on : ubuntu-22.04
13
13
permissions :
14
14
contents : write
15
15
steps :
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
10
10
11
11
jobs :
12
12
action :
13
- runs-on : ubuntu-latest
13
+ runs-on : ubuntu-22.04
14
14
steps :
15
15
- uses : dessant/support-requests@v3
16
16
with :
Original file line number Diff line number Diff line change 29
29
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/local-registry.md
30
30
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/multi-platform.md
31
31
build_images :
32
- runs-on : ubuntu-20 .04
32
+ runs-on : ubuntu-22 .04
33
33
steps :
34
34
- uses : actions/checkout@v3
35
35
with :
Original file line number Diff line number Diff line change 25
25
26
26
jobs :
27
27
linkcheck :
28
- runs-on : ubuntu-20 .04
28
+ runs-on : ubuntu-22 .04
29
29
steps :
30
30
- uses : actions/checkout@v3
31
31
with :
Original file line number Diff line number Diff line change 32
32
jobs :
33
33
trivy_image_scan :
34
34
if : github.repository == 'jupyterhub/zero-to-jupyterhub-k8s'
35
- runs-on : ubuntu-20 .04
35
+ runs-on : ubuntu-22 .04
36
36
environment : watch-dependencies
37
37
38
38
strategy :
Original file line number Diff line number Diff line change 32
32
update-image-dependencies :
33
33
# Don't run this job on forks
34
34
if : github.repository == 'jupyterhub/zero-to-jupyterhub-k8s'
35
- runs-on : ubuntu-20 .04
35
+ runs-on : ubuntu-22 .04
36
36
environment : watch-dependencies
37
37
38
38
strategy :
@@ -202,7 +202,7 @@ jobs:
202
202
# these dependencies every day is too much noise.
203
203
#
204
204
if : github.repository == 'jupyterhub/zero-to-jupyterhub-k8s' && github.event_name != 'schedule'
205
- runs-on : ubuntu-latest
205
+ runs-on : ubuntu-22.04
206
206
environment : watch-dependencies
207
207
208
208
steps :
You can’t perform that action at this time.
0 commit comments