Skip to content

Commit fea75b7

Browse files
author
Liav Weiss (EXT-Nokia)
committed
Migrate kubeflow/kubeflow tb_controller_docker_publish.yaml GitHub Action to kubeflow/notebooks - notebooks-v1 branch
Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
1 parent 88e00b4 commit fea75b7

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build & Publish Tensorboard Controller Docker image
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- notebooks-v1
7+
- v*-branch
8+
paths:
9+
- components/tensorboard-controller/**
10+
- releasing/version/VERSION
11+
12+
env:
13+
IMG: ghcr.io/kubeflow/notebooks/tensorboard-controller
14+
ARCH: linux/amd64,linux/ppc64le,linux/arm64/v8
15+
16+
jobs:
17+
push_to_registry:
18+
name: Build & Push image to GHCR
19+
runs-on: ubuntu-22.04
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
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+
40+
- name: Setup QEMU
41+
uses: docker/setup-qemu-action@v3
42+
43+
- name: Setup Docker Buildx
44+
uses: docker/setup-buildx-action@v3
45+
46+
- name: Build and push multi-arch docker image
47+
run: |
48+
cd components/tensorboard-controller
49+
ARCH=linux/amd64 make docker-build-multi-arch
50+
ARCH=linux/ppc64le make docker-build-multi-arch
51+
ARCH=linux/arm64/v8 make docker-build-multi-arch
52+
make docker-build-push-multi-arch
53+
54+
- name: Build and push latest multi-arch docker image
55+
if: github.ref == 'refs/heads/notebooks-v1'
56+
run: |
57+
export TAG=latest
58+
cd components/tensorboard-controller
59+
make docker-build-push-multi-arch
60+
61+
- name: Build and push multi-arch docker image on Version change
62+
id: version
63+
if: steps.filter.outputs.version == 'true'
64+
run: |
65+
export TAG=$(cat releasing/version/VERSION)
66+
cd components/tensorboard-controller
67+
make docker-build-push-multi-arch

components/tensorboard-controller/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Image URL to use all building/pushing image targets
2-
IMG ?= ghcr.io/kubeflow/kubeflow/tensorboard-controller
2+
IMG ?= ghcr.io/kubeflow/notebooks/tensorboard-controller
33
TAG ?= $(shell git describe --tags --always --dirty)
44
ARCH ?= linux/amd64
55
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)

0 commit comments

Comments
 (0)