forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (59 loc) · 2.18 KB
/
nb_server_jupyter_tf_full_docker_publish.yaml
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
name: Build & Publish Jupyter TensorFlow Full Notebook Server Docker images
on:
push:
branches:
- master
- v*-branch
paths:
- components/example-notebook-servers/jupyter-tensorflow-full/**
- components/example-notebook-servers/jupyter-tensorflow/**
- components/example-notebook-servers/jupyter/**
- components/example-notebook-servers/base/**
- releasing/version/VERSION
env:
DOCKER_USER: kubeflownotebookswg
REGISTRY: kubeflownotebookswg
jobs:
push_to_registry:
name: Build & Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
version:
- 'releasing/version/VERSION'
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_USER }}
password: ${{ secrets.KUBEFLOWNOTEBOOKSWG_DOCKER_TOKEN }}
- name: Build and push Notebook Server images
run: |
cd components/example-notebook-servers/
make docker-build-cpu -C jupyter-tensorflow-full
make docker-build-cuda -C jupyter-tensorflow-full
make docker-push-cpu -C jupyter-tensorflow-full
make docker-push-cuda -C jupyter-tensorflow-full
- name: Build and push latest Notebook Server images
if: github.ref == 'refs/heads/master'
run: |
export TAG=latest
cd components/example-notebook-servers/
make docker-build-cpu -C jupyter-tensorflow-full
make docker-build-cuda -C jupyter-tensorflow-full
make docker-push-cpu -C jupyter-tensorflow-full
make docker-push-cuda -C jupyter-tensorflow-full
- name: Build and push Notebook Server images on Version change
id: version
if: steps.filter.outputs.version == 'true'
run: |
export TAG=$(cat releasing/version/VERSION)
cd components/example-notebook-servers/
make docker-build-cpu -C jupyter-tensorflow-full
make docker-build-cuda -C jupyter-tensorflow-full
make docker-push-cpu -C jupyter-tensorflow-full
make docker-push-cuda -C jupyter-tensorflow-full