@@ -169,16 +169,16 @@ jobs:
169169 runs-on : ubuntu-20.04
170170
171171 steps :
172- - name : Load container artifact
173- uses : actions/download-artifact@v1
174- with :
175- name : operator-bundle
176- path : /tmp
172+ - name : Check out code
173+ uses : actions/checkout@v2
177174
178- - name : Import container image
179- run : |
180- docker load -i /tmp/bundle.tar
181- docker inspect "${BUNDLE_IMAGE}:${{ env.TAG }}"
175+ - name : Set up QEMU
176+ uses : docker/setup-qemu-action@v1
177+
178+ - name : Set up Docker Buildx
179+ uses : docker/setup-buildx-action@v1
180+ with :
181+ buildkitd-flags : --debug
182182
183183 - name : Login to registry
184184 # If the registry server is specified in the image name, we use that.
@@ -188,10 +188,20 @@ jobs:
188188 echo "Attempting docker login to: ${REGISTRY}"
189189 echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin ${REGISTRY}
190190
191- - name : Push to registry (version tag)
192- if : >
193- (github.event_name == 'push' || github.event_name == 'schedule') &&
194- github.ref == 'refs/heads/main'
195- run : |
196- echo "Pushing to ${{ env.TAG }}"
197- docker push "${BUNDLE_IMAGE}:${{ env.TAG }}"
191+ - name : " Build Operator Image"
192+ uses : docker/build-push-action@v2
193+ with :
194+ context : .
195+ file : " ./Dockerfile"
196+ platforms : " linux/amd64,linux/arm64"
197+ push : true
198+ tags : ${{ env.OPERATOR_IMAGE }}
199+
200+ - name : " Build Bundle Image"
201+ uses : docker/build-push-action@v2
202+ with :
203+ context : .
204+ file : " ./bundle.Dockerfile"
205+ platforms : " linux/amd64,linux/arm64"
206+ push : true
207+ tags : ${{ env.BUNDLE_IMAGE }}
0 commit comments