Skip to content

Commit

Permalink
Add PKO build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
janboll committed Jan 17, 2025
1 parent 80eae7e commit 22a472b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/services-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,30 @@
run: |
cd tooling/image-sync
make push
build_push_package_operator:
permissions:
id-token: 'write'
contents: 'read'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1

- name: "install azure-cli"
if: inputs.push == true
uses: "Azure/ARO-HCP@main"

- name: 'Az CLI login'
if: inputs.push == true
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Build package operator container image from [email protected]:package-operator/package-operator.git
run: |
cd pko
make image
7 changes: 7 additions & 0 deletions pko/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ deploy:
--set serviceAccount.workloadIdentityClientId="$${PKO_MI_CLIENT_ID}" \
--set serviceAccount.workloadIdentityTenantId="$${PKO_MI_CLIENT_ID}"

image:
cd $$(mktemp -d) && \
git clone [email protected]:package-operator/package-operator.git && \
cd package-operator && \
git checkout ${PKO_IMAGE_TAG} && \
IMAGE_REGISTRY=${ARO_HCP_IMAGE_REGISTRY}/package-operator ./do ci:release

.PHONY: deploy

0 comments on commit 22a472b

Please sign in to comment.