-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.43 KB
/
docker-image-ci.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
name: Docker Image CI
on:
schedule:
- cron: '18 15 * * *'
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
hub: ${{ steps.filter.outputs.hub }}
lab-gpu: ${{ steps.filter.outputs.lab-gpu }}
lab-cpu: ${{ steps.filter.outputs.lab-cpu }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
base: main
filters: |
hub:
- 'jupyterhub/**'
lab-gpu:
- 'jupyterlab-scipy-gpu/**'
lab-cpu:
- 'jupyterlab-scipy-cpu/**'
build-and-push-hub:
needs: changes
if: ${{ needs.changes.outputs.hub == 'true' || github.event_name == 'schedule' }}
uses: ./.github/workflows/reusable-docker-build-push.yml
with:
image: jupyterhub
build-and-push-lab-cpu:
needs: changes
if: ${{ needs.changes.outputs.lab-cpu == 'true' || github.event_name == 'schedule' }}
uses: ./.github/workflows/reusable-docker-build-push.yml
with:
image: jupyterlab-scipy-cpu
build-and-push-lab-gpu:
needs: changes
if: ${{ needs.changes.outputs.lab-gpu == 'true' || github.event_name == 'schedule' }}
uses: ./.github/workflows/reusable-docker-build-push.yml
with:
image: jupyterlab-scipy-gpu