Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/profile_controller_multi_arch_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

env:
IMG: ghcr.io/kubeflow/kubeflow/profile-controller
IMG: ghcr.io/kubeflow/dashboard/profile-controller

jobs:
build:
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/profile_controller_oci_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build & Publish Profile Controller OCI image
on:
push:
branches:
- main
- v*-branch
paths:
- components/profile-controller/**
- releasing/version/VERSION
- .github/workflows/profile_controller_oci_publish.yaml
env:
IMG: ghcr.io/kubeflow/dashboard/profile-controller
ARCH: linux/amd64,linux/ppc64le,linux/arm64/v8

jobs:
push_to_registry:
name: Build & Push OCI image to GHCR
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
version:
- 'releasing/version/VERSION'

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push multi-architecture OCI image
run: |
cd components/profile-controller
ARCH=linux/amd64 make docker-build-multi-arch
ARCH=linux/ppc64le make docker-build-multi-arch
ARCH=linux/arm64/v8 make docker-build-multi-arch
make docker-build-push-multi-arch

- name: Build and push latest multi-architecture OCI image
if: github.ref == 'refs/heads/main'
run: |
export TAG=latest
cd components/profile-controller
make docker-build-push-multi-arch

- name: Build and push multi-architecture OCI image on Version change
id: version
if: steps.filter.outputs.version == 'true'
run: |
export TAG=$(cat releasing/version/VERSION)
cd components/profile-controller
make docker-build-push-multi-arch
2 changes: 1 addition & 1 deletion components/profile-controller/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Image URL to use all building/pushing image targets
IMG ?= ghcr.io/kubeflow/kubeflow/profile-controller
IMG ?= ghcr.io/kubeflow/dashboard/profile-controller
TAG ?= $(shell git describe --tags --always --dirty)
ARCH ?= linux/amd64

Expand Down
4 changes: 2 additions & 2 deletions components/profile-controller/config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ patchesStrategicMerge:
- patches/manager.yaml

images:
- name: ghcr.io/kubeflow/kubeflow/profile-controller
newName: ghcr.io/kubeflow/kubeflow/profile-controller
- name: ghcr.io/kubeflow/dashboard/profile-controller
newName: ghcr.io/kubeflow/dashboard/profile-controller
newTag: latest

configMapGenerator:
Expand Down
2 changes: 1 addition & 1 deletion components/profile-controller/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
envFrom:
- configMapRef:
name: config
image: ghcr.io/kubeflow/kubeflow/profile-controller
image: ghcr.io/kubeflow/dashboard/profile-controller
imagePullPolicy: IfNotPresent
name: manager
livenessProbe:
Expand Down
Loading