-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (91 loc) · 3.01 KB
/
publish.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
name: Publish images
on:
workflow_dispatch:
push:
branches: [main]
paths:
- .github/workflows/publish.yml
- .github/workflows/build-test-publish.yml
- tests/**
- base-r-notebook/**
- essentials-notebook/**
- r-notebook/**
- datascience-notebook/**
schedule:
# Weekly, at 03:00 on Monday UTC time (see https://crontab.guru)
- cron: "0 3 * * 1"
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
base-r:
uses: ./.github/workflows/build-test-publish.yml
secrets: inherit
with:
image: base-r-notebook
no-cache: ${{ github.event_name == 'schedule' }}
labels: |
org.opencontainers.image.title=Base R Notebook
org.opencontainers.image.description=Jupyter Lab, Python, and R, and that's it.
tags: |
type=raw,value=python-3.11
type=raw,value=r-4.3
build-args: |
PYTHON_VERSION=3.11
R_VERSION=4.3
publish: true
essentials:
needs: [base-r]
uses: ./.github/workflows/build-test-publish.yml
secrets: inherit
with:
image: essentials-notebook
no-cache: ${{ github.event_name == 'schedule' }}
labels: |
org.opencontainers.image.title=Essentials Notebook
org.opencontainers.image.description=CourseKata essentials: everything used in the books.
tags: |
type=raw,value=python-3.11
type=raw,value=r-4.3
build-args: |
PARENT_NAME=${{ needs.base-r.outputs.image }}@${{ needs.base-r.outputs.digest}}
publish: true
free-disk-space: true
r:
needs: [base-r, essentials]
uses: ./.github/workflows/build-test-publish.yml
secrets: inherit
with:
image: r-notebook
no-cache: ${{ github.event_name == 'schedule' }}
labels: |
org.opencontainers.image.title=R Notebook
org.opencontainers.image.description=CourseKata essentials and other R packages for teaching and learning data science.
tags: |
type=raw,value=python-3.11
type=raw,value=r-4.3
build-args: |
PARENT_NAME=${{ needs.essentials.outputs.image }}@${{ needs.essentials.outputs.digest}}
publish: true
free-disk-space: true
datascience:
needs: [base-r, r]
uses: ./.github/workflows/build-test-publish.yml
secrets: inherit
with:
image: datascience-notebook
no-cache: ${{ github.event_name == 'schedule' }}
labels: |
org.opencontainers.image.title=Data Science Notebook
org.opencontainers.image.description=R and Python packages for teaching and learning data science.
tags: |
type=raw,value=python-3.11
type=raw,value=r-4.3
build-args: |
PARENT_NAME=${{ needs.r.outputs.image }}@${{ needs.r.outputs.digest}}
publish: true
free-disk-space: true
free-more-disk-space: true