Skip to content

Commit 70d9fe5

Browse files
committed
Merge branch 'multiarch' of github.com:cooktheryan/ipfs-operator into multiarch
2 parents e95bc16 + 3fc4668 commit 70d9fe5

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

.github/workflows/validate-ipfs.yaml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ jobs:
170170
runs-on: ubuntu-20.04
171171

172172
steps:
173-
- name: Load container artifact
174-
uses: actions/download-artifact@v1
175-
with:
176-
name: operator-bundle
177-
path: /tmp
173+
- name: Check out code
174+
uses: actions/checkout@v2
178175

179-
- name: Import container image
180-
run: |
181-
docker load -i /tmp/bundle.tar
182-
docker inspect "${BUNDLE_IMAGE}:${{ env.TAG }}"
176+
- name: Set up QEMU
177+
uses: docker/setup-qemu-action@v1
178+
179+
- name: Set up Docker Buildx
180+
uses: docker/setup-buildx-action@v1
181+
with:
182+
buildkitd-flags: --debug
183183

184184
- name: Login to registry
185185
# If the registry server is specified in the image name, we use that.
@@ -189,10 +189,20 @@ jobs:
189189
echo "Attempting docker login to: ${REGISTRY}"
190190
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin ${REGISTRY}
191191
192-
- name: Push to registry (version tag)
193-
if: >
194-
(github.event_name == 'push' || github.event_name == 'schedule') &&
195-
github.ref == 'refs/heads/main'
196-
run: |
197-
echo "Pushing to ${{ env.TAG }}"
198-
docker push "${BUNDLE_IMAGE}:${{ env.TAG }}"
192+
- name: "Build Operator Image"
193+
uses: docker/build-push-action@v2
194+
with:
195+
context: .
196+
file: "./Dockerfile"
197+
platforms: "linux/amd64,linux/arm64"
198+
push: true
199+
tags: ${{ env.OPERATOR_IMAGE }}
200+
201+
- name: "Build Bundle Image"
202+
uses: docker/build-push-action@v2
203+
with:
204+
context: .
205+
file: "./bundle.Dockerfile"
206+
platforms: "linux/amd64,linux/arm64"
207+
push: true
208+
tags: ${{ env.BUNDLE_IMAGE }}

0 commit comments

Comments
 (0)