Skip to content

Commit 140e126

Browse files
author
Abdallah Samara (EXT-Nokia)
committed
ci: Migrate kubeflow/kubeflow centraldb_angular_docker_publish.yaml GitHub Action to kubeflow/dashboard
Signed-off-by: Abdallah Samara (EXT-Nokia) <abdallah.samara.ext@nokia.com>
1 parent 61cd9a5 commit 140e126

6 files changed

Lines changed: 63 additions & 6 deletions

File tree

.github/workflows/central_dashboard_angular_integration_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
IMG: ghcr.io/kubeflow/kubeflow/centraldashboard-angular
17+
IMG: ghcr.io/kubeflow/dashboard/centraldashboard-angular
1818
TAG: integration-test
1919

2020
jobs:
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build & Publish CentralDashboard-Angular Docker image
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- v*-branch
7+
paths:
8+
- components/centraldashboard-angular/**
9+
- releasing/version/VERSION
10+
11+
env:
12+
IMG: ghcr.io/kubeflow/dashboard/centraldashboard-angular
13+
14+
jobs:
15+
push_to_registry:
16+
name: Build & Push image to GHCR
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- uses: dorny/paths-filter@v3
25+
id: filter
26+
with:
27+
base: ${{ github.ref }}
28+
filters: |
29+
version:
30+
- 'releasing/version/VERSION'
31+
32+
- name: Login to GHCR
33+
uses: docker/login-action@v3
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Run CentralDashboard-Angular build/push
40+
run: |
41+
cd components/centraldashboard-angular
42+
make docker-build docker-push
43+
44+
- name: Run CentralDashboard-Angular build/push latest
45+
if: github.ref == 'refs/heads/main'
46+
run: |
47+
export TAG=latest
48+
cd components/centraldashboard-angular
49+
make docker-build docker-push
50+
51+
- name: Run CentralDashboard-Angular build/push on Version change
52+
id: version
53+
if: steps.filter.outputs.version == 'true'
54+
run: |
55+
export TAG=$(cat releasing/version/VERSION)
56+
cd components/centraldashboard-angular
57+
make docker-build docker-push

.github/workflows/end_to_end_integration_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
env:
2121
CENTRALDASHBOARD_IMG: ghcr.io/kubeflow/kubeflow/centraldashboard
22-
CENTRALDASHBOARD_ANGULAR_IMG: ghcr.io/kubeflow/kubeflow/centraldashboard-angular
22+
CENTRALDASHBOARD_ANGULAR_IMG: ghcr.io/kubeflow/dashboard/centraldashboard-angular
2323
PROFILE_CONTROLLER_IMG: ghcr.io/kubeflow/kubeflow/profile-controller
2424
KFAM_IMG: ghcr.io/kubeflow/kubeflow/kfam
2525
ADMISSION_WEBHOOK_IMG: ghcr.io/kubeflow/kubeflow/poddefaults-webhook

components/centraldashboard-angular/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
IMG ?= ghcr.io/kubeflow/kubeflow/centraldashboard-angular
1+
IMG ?= ghcr.io/kubeflow/dashboard/centraldashboard-angular
22
TAG ?= $(shell git describe --tags --always --dirty)
33
COMMIT = $(shell git rev-parse HEAD)
44

components/centraldashboard-angular/manifests/base/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: centraldashboard-angular
21-
image: ghcr.io/kubeflow/kubeflow/centraldashboard-angular
21+
image: ghcr.io/kubeflow/dashboard/centraldashboard-angular
2222
imagePullPolicy: IfNotPresent
2323
livenessProbe:
2424
httpGet:

components/centraldashboard-angular/manifests/base/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ resources:
1111
- service.yaml
1212
- configmap.yaml
1313
images:
14-
- name: ghcr.io/kubeflow/kubeflow/centraldashboard-angular
15-
newName: ghcr.io/kubeflow/kubeflow/centraldashboard-angular
14+
- name: ghcr.io/kubeflow/dashboard/centraldashboard-angular
15+
newName: ghcr.io/kubeflow/dashboard/centraldashboard-angular
1616
newTag: latest
1717
configMapGenerator:
1818
- envs:

0 commit comments

Comments
 (0)