-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mutli arch build and manifest for the operator repo
Signed-off-by: Mohamed Mahmoud <[email protected]>
- Loading branch information
1 parent
8abeb40
commit 06a36ba
Showing
6 changed files
with
110 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ jobs: | |
id-token: write # needed for signing the images with GitHub OIDC Token | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
WF_BPFMAN_AGENT_IMG: quay.io/bpfman/bpfman-agent | ||
WF_BPFMAN_OPERATOR_IMG: quay.io/bpfman/bpfman-operator | ||
WF_MULTIARCH_TARGETS: amd64 arm64 ppc64le s390x | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -71,7 +75,7 @@ jobs: | |
if: ${{ matrix.image.build_language == 'go' }} | ||
with: | ||
# prettier-ignore | ||
go-version: '1.21' # yamllint disable-line rule:quoted-strings | ||
go-version: '1.22' # yamllint disable-line rule:quoted-strings | ||
|
||
- uses: sigstore/[email protected] | ||
|
||
|
@@ -120,3 +124,18 @@ jobs: | |
for tag in ${tags[@]}; do | ||
cosign sign -y "${tag}@${{ steps.push-image.outputs.digest }}" | ||
done | ||
- name: get short sha | ||
run: | | ||
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
- name: Build and Push multi arch images | ||
run: | | ||
IMAGE_TAG=${{ env.short_sha }}" | ||
BPFMAN_AGENT_IMG="${{ env.WF_BPFMAN_AGENT_IMG }} | ||
BPFMAN_OPERATOR_IMG="${{ env.WF_BPFMAN_OPERATOR_IMG}} | ||
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" make build-images push-images | ||
- name: Build and Push manifest | ||
run: | | ||
IMAGE_TAG=${{ env.short_sha }}" | ||
BPFMAN_AGENT_IMG="${{ env.WF_BPFMAN_AGENT_IMG }} | ||
BPFMAN_OPERATOR_IMG="${{ env.WF_BPFMAN_OPERATOR_IMG}} | ||
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" make manifest-build manifest-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters