-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathprofile_controller_oci_publish.yaml
More file actions
67 lines (57 loc) · 1.76 KB
/
profile_controller_oci_publish.yaml
File metadata and controls
67 lines (57 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build & Publish Profile Controller OCI image
on:
push:
branches:
- main
- v*-branch
paths:
- components/profile-controller/**
- releasing/version/VERSION
env:
IMG: ghcr.io/kubeflow/dashboard/profile-controller
ARCH: linux/amd64,linux/ppc64le,linux/arm64/v8
permissions:
contents: read
packages: write
jobs:
push_to_registry:
name: Build & Push OCI image to GHCR
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: filter
with:
base: ${{ github.ref }}
filters: |
version:
- 'releasing/version/VERSION'
- name: Login to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push multi-architecture OCI image (commit tag)
run: |
cd components/profile-controller
make docker-build-multi-arch
make docker-build-push-multi-arch
- name: Build and push multi-architecture OCI image (latest tag)
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 (version tag)
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