This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
77 lines (66 loc) · 1.94 KB
/
docker.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
name: Build, test, and publish Docker Images
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/docker.yml"
- "src/illumidesk/**"
- "src/illumideskdummyauthenticator/**"
- "src/graderservice/**"
- "Makefile"
- "pytest.ini"
- "dev-requirements.txt"
push:
branches:
- main
paths:
- ".github/workflows/docker.yml"
- "src/illumidesk/**"
- "src/illumideskdummyauthenticator/**"
- "src/graderservice/**"
- "Makefile"
- "pytest.ini"
- "requirements-dev.txt"
jobs:
build-test-publish-images:
name: Build, test, and publish Docker Images
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Clone Main Repo
uses: actions/checkout@v2
with:
path: main
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dev Dependencies
run: |
make -C main dev
- name: Build Kubernetes JupyterHub Image
run: make -C main build-hubs-k8
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Build Standard JupyterHub Image
run: make -C main build-hubs
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Build Grader Setup Service Image
run: make -C main build-grader-setup-service
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Login to Docker Hub
if: github.ref == 'refs/heads/main'
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # dependabot updates to latest release
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Push Images to DockerHub
if: github.ref == 'refs/heads/main'
run: make -C main push-all