Skip to content

Commit 860b89b

Browse files
abdallahsamabdAbdallah Samara (EXT-Nokia)
andauthored
feat: Migrate kubeflow/kubeflow twa_docker_publish.yaml GitHub Action… (#668)
Signed-off-by: Abdallah Samara (EXT-Nokia) <[email protected]> Co-authored-by: Abdallah Samara (EXT-Nokia) <[email protected]>
1 parent 6463a82 commit 860b89b

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build & Publish TWA Docker image
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- notebooks-v1
7+
- v*-branch
8+
paths:
9+
- components/crud-web-apps/tensorboards/**
10+
- components/crud-web-apps/common/**
11+
- releasing/version/VERSION
12+
13+
env:
14+
IMG: ghcr.io/kubeflow/notebooks/tensorboards-web-app
15+
ARCH: linux/amd64,linux/ppc64le,linux/arm64/v8
16+
17+
defaults:
18+
run:
19+
working-directory: components/crud-web-apps/tensorboards
20+
21+
jobs:
22+
push_to_registry:
23+
name: Build & Push image to GHCR Hub
24+
runs-on: ubuntu-22.04
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- uses: dorny/paths-filter@v3
30+
id: filter
31+
with:
32+
base: ${{ github.ref }}
33+
filters: |
34+
version:
35+
- 'releasing/version/VERSION'
36+
37+
- name: Login to GHCR
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ghcr.io
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
44+
- name: Setup QEMU
45+
uses: docker/setup-qemu-action@v3
46+
47+
- name: Setup Docker Buildx
48+
uses: docker/setup-buildx-action@v3
49+
50+
- name: Build and push multi-arch docker image
51+
run: |
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+
make docker-build-push-multi-arch
59+
60+
- name: Build and push multi-arch docker image on Version change
61+
id: version
62+
if: steps.filter.outputs.version == 'true'
63+
run: |
64+
export TAG=$(cat ../../../releasing/version/VERSION)
65+
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)