2626 - name : Check out code into the Go module directory
2727 uses : actions/checkout@v2
2828
29+ # - uses: shivanshs9/setup-k8s-operator-sdk@v1
30+ # with:
31+ # version: "1.9.0" # The operator-sdk version to download (if necessary) and use.
32+
2933 - name : Download operator sdk
3034 shell : bash
3135 env :
4650 echo "BUNDLE_IMAGE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
4751 export TAG=${GITHUB_REF/refs\/tags\//}
4852 echo "BUNDLE_VERSION=${TAG:1}" >> $GITHUB_ENV
49- export SEMVER_COMPLIANT=$(echo ${TAG:1} | egrep '^(0|[1-9]\d *)\.(0|[1-9]\d *)\.(0|[1-9]\d *)(?:-((?:0|[1-9]\d*|\d *[a-zA-Z-][0-9a-zA-Z-])(?:\.(?:0|[1-9]\d|\d *[a-zA-Z-][0-9a-zA-Z-])) ))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$')
53+ export SEMVER_COMPLIANT=$(echo ${TAG:1} | egrep '^(0|[1-9][0-9] *)\.(0|[1-9][0-9] *)\.(0|[1-9][0-9] *)(?:-((?:0|[1-9][0-9]*|[0-9] *[a-zA-Z-][0-9a-zA-Z-]* )(?:\.(?:0|[1-9][0-9]*|[0-9] *[a-zA-Z-][0-9a-zA-Z-]*))* ))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$')
5054 if [ -z "$SEMVER_COMPLIANT" ]; then echo "invalid semver tag ${GITHUB_REF/refs\/tags\//}"; exit 1; fi
5155
5256 - name : Get the version for merge
7781
7882 - name : Set up QEMU
7983 uses : docker/setup-qemu-action@v1
84+ with :
85+ platforms : all
8086
8187 - name : Set up Docker Buildx
8288 uses : docker/setup-buildx-action@v1
9399 with :
94100 context : .
95101 file : ./Dockerfile
102+ platforms : linux/amd64,linux/arm64,linux/ppc64le
96103 push : true
97104 tags : " quay.io/${{ github.repository_owner }}/${{ env.REPOSITORY_NAME }}:${{ env.OPERATOR_IMAGE_TAG }}"
98105
@@ -101,6 +108,7 @@ jobs:
101108 with :
102109 context : .
103110 file : ./bundle.Dockerfile
111+ platforms : linux/amd64,linux/arm64,linux/ppc64le
104112 push : true
105113 tags : " quay.io/${{ github.repository_owner }}/${{ env.REPOSITORY_NAME }}-bundle:${{ env.BUNDLE_IMAGE_TAG }}"
106114
@@ -216,6 +224,10 @@ jobs:
216224 with :
217225 go-version : ^1.16
218226
227+ # - uses: shivanshs9/setup-k8s-operator-sdk@v1
228+ # with:
229+ # version: "1.9.0" # The operator-sdk version to download (if necessary) and use.
230+
219231 - name : Download operator sdk
220232 shell : bash
221233 env :
0 commit comments