-
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 84ddf85
Showing
7 changed files
with
106 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 # comment out other arch arm64 ppc64le s390x till we sort out microdnf issue | ||
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,15 @@ 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 multi arch images and manifest | ||
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 manifest-build | ||
- name: Push multi arch images and manifest | ||
if: ${{ github.event_name == 'push' }} | ||
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 images |
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