Skip to content

Commit 22a472b

Browse files
committed
Add PKO build steps
1 parent 80eae7e commit 22a472b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/services-ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,30 @@
157157
run: |
158158
cd tooling/image-sync
159159
make push
160+
161+
build_push_package_operator:
162+
permissions:
163+
id-token: 'write'
164+
contents: 'read'
165+
runs-on: 'ubuntu-latest'
166+
steps:
167+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
168+
with:
169+
fetch-depth: 1
170+
171+
- name: "install azure-cli"
172+
if: inputs.push == true
173+
uses: "Azure/ARO-HCP@main"
174+
175+
- name: 'Az CLI login'
176+
if: inputs.push == true
177+
uses: azure/login@v2
178+
with:
179+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
180+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
181+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
182+
183+
- name: Build package operator container image from [email protected]:package-operator/package-operator.git
184+
run: |
185+
cd pko
186+
make image

pko/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ deploy:
3636
--set serviceAccount.workloadIdentityClientId="$${PKO_MI_CLIENT_ID}" \
3737
--set serviceAccount.workloadIdentityTenantId="$${PKO_MI_CLIENT_ID}"
3838

39+
image:
40+
cd $$(mktemp -d) && \
41+
git clone [email protected]:package-operator/package-operator.git && \
42+
cd package-operator && \
43+
git checkout ${PKO_IMAGE_TAG} && \
44+
IMAGE_REGISTRY=${ARO_HCP_IMAGE_REGISTRY}/package-operator ./do ci:release
45+
3946
.PHONY: deploy

0 commit comments

Comments
 (0)