Skip to content

Commit bf94f79

Browse files
author
Abdallah Samara (EXT-Nokia)
committed
feat: Migrate kubeflow/kubeflow twa_docker_publish.yaml GitHub Action to kubeflow/notebooks - notebooks-v1 branch
Signed-off-by: Abdallah Samara (EXT-Nokia) <abdallah.samara.ext@nokia.com>
1 parent 88e00b4 commit bf94f79

2 files changed

Lines changed: 65 additions & 1 deletion

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build & Publish TWA Docker image
2+
on:
3+
push:
4+
branches:
5+
- dev2/617
6+
- v*-branch
7+
paths:
8+
- components/crud-web-apps/tensorboards/**
9+
- components/crud-web-apps/common/**
10+
- releasing/version/VERSION
11+
12+
env:
13+
IMG: ghcr.io/abdallahsamabd/notebooks/tensorboards-web-app
14+
ARCH: linux/amd64,linux/ppc64le,linux/arm64/v8
15+
16+
defaults:
17+
run:
18+
working-directory: components/crud-web-apps/tensorboards
19+
20+
jobs:
21+
push_to_registry:
22+
name: Build & Push image to GHCR Hub
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- uses: dorny/paths-filter@v3
29+
id: filter
30+
with:
31+
base: ${{ github.ref }}
32+
filters: |
33+
version:
34+
- 'releasing/version/VERSION'
35+
36+
- name: Login to GHCR
37+
uses: docker/login-action@v3
38+
with:
39+
registry: ghcr.io
40+
username: ${{ github.actor }}
41+
password: ${{ secrets.GITHUB_TOKEN }}
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/master'
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/crud-web-apps/tensorboards/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TAG ?= $(shell git describe --tags --always --dirty)
2-
IMG ?= ghcr.io/kubeflow/kubeflow/tensorboards-web-app
2+
IMG ?= ghcr.io/kubeflow/notebooks/tensorboards-web-app
33
DOCKERFILE ?= tensorboards/Dockerfile
44
ARCH ?= linux/amd64
55

0 commit comments

Comments
 (0)