Skip to content

Commit e4c3bc1

Browse files
liavweissLiav Weiss (EXT-Nokia)
andauthored
ci: Migrate kubeflow/kubeflow tb_controller_docker_publish.yaml GitHub Action to kubeflow/notebooks - notebooks-v1 branch (#649)
Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]> Co-authored-by: Liav Weiss (EXT-Nokia) <[email protected]>
1 parent e33dc11 commit e4c3bc1

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
defaults:
21+
run:
22+
working-directory: components/tensorboard-controller
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- uses: dorny/paths-filter@v3
28+
id: filter
29+
with:
30+
base: ${{ github.ref }}
31+
filters: |
32+
version:
33+
- 'releasing/version/VERSION'
34+
35+
- name: Login to GHCR
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
42+
43+
- name: Setup QEMU
44+
uses: docker/setup-qemu-action@v3
45+
46+
- name: Setup Docker Buildx
47+
uses: docker/setup-buildx-action@v3
48+
49+
- name: Build and push multi-arch docker image
50+
run: |
51+
make docker-build-push-multi-arch
52+
53+
- name: Build and push latest multi-arch docker image
54+
if: github.ref == 'refs/heads/notebooks-v1'
55+
run: |
56+
export TAG=latest
57+
make docker-build-push-multi-arch
58+
59+
- name: Build and push multi-arch docker image on Version change
60+
id: version
61+
if: steps.filter.outputs.version == 'true'
62+
run: |
63+
export TAG=$(cat ../../releasing/version/VERSION)
64+
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)