-
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 85a029e
Showing
7 changed files
with
102 additions
and
32 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,14 @@ 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 | ||
uses: redhat-actions/push-to-registry@v2 | ||
run: | | ||
BPFMAN_AGENT_IMG="${{ env.WF_BPFMAN_AGENT_IMG }}:${{ env.short_sha }}" BPFMAN_OPERATOR_IMG="${{ env.WF_BPFMAN_OPERATOR_IMG}}:${{ env.short_sha }}" MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" make build-images push-images | ||
- name: Build and Push manifest | ||
uses: redhat-actions/push-to-registry@v2 | ||
run: | | ||
BPFMAN_AGENT_IMG="${{ env.WF_BPFMAN_AGENT_IMG }}:${{ env.short_sha }}" BPFMAN_OPERATOR_IMG="${{ env.WF_BPFMAN_OPERATOR_IMG}}:${{ env.short_sha }}" 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
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