forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (47 loc) · 1.44 KB
/
centraldb_angular_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
name: Build & Publish CentralDashboard-Angular Docker image
on:
push:
branches:
- master
- v*-branch
paths:
- components/centraldashboard-angular/**
- releasing/version/VERSION
env:
DOCKER_USER: kubeflownotebookswg
IMG: kubeflownotebookswg/centraldashboard-angular
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: Run CentralDashboard-Angular build/push
run: |
cd components/centraldashboard-angular
make docker-build docker-push
- name: Run CentralDashboard-Angular build/push latest
if: github.ref == 'refs/heads/master'
run: |
export TAG=latest
cd components/centraldashboard-angular
make docker-build docker-push
- name: Run CentralDashboard-Angular build/push on Version change
id: version
if: steps.filter.outputs.version == 'true'
run: |
export TAG=$(cat releasing/version/VERSION)
cd components/centraldashboard-angular
make docker-build docker-push