Skip to content

Commit bec8e82

Browse files
author
matanper
authored
Fix docker build (#218)
1 parent 299dc28 commit bec8e82

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,31 @@ jobs:
5555
docker-push:
5656
if: github.event_name != 'pull_request'
5757
runs-on: ubuntu-latest
58+
needs: build
5859
steps:
5960
- name: Checkout
6061
uses: actions/checkout@v2
6162
- name: Set up Docker Buildx
6263
uses: docker/setup-buildx-action@v2
64+
- name: Download artifact
65+
uses: actions/download-artifact@v2
66+
with:
67+
name: commImage
68+
path: /tmp
69+
- name: Load Docker image
70+
# Loading the image from artifact should reuse it and rebuild only the missing arm64 version
71+
run: docker load --input /tmp/commImage.tar
6372
- name: Build and push
6473
uses: docker/build-push-action@v4
6574
with:
6675
context: .
6776
file: ./Dockerfile
6877
platforms: linux/amd64,linux/arm64/v8
69-
tags: ${{ secrets.MON_IMAGE_NAME }}:${{ github.sha }},${{ secrets.MON_IMAGE_NAME }}:latest,${{ secrets.PUBLIC_IMAGE_NAME }}:latest
78+
outputs: type=image,push=false
79+
tags: |
80+
${{ secrets.MON_IMAGE_NAME }}:${{ github.sha }}
81+
${{ secrets.MON_IMAGE_NAME }}:latest
82+
${{ secrets.PUBLIC_IMAGE_NAME }}:latest
7083
build-args: |
7184
DEEPCHECKS_CI_TOKEN=${{ secrets.DEEPCHECKS_CI_TOKEN }}
7285
- name: Configure AWS credentials

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
99
# ----------------------------------------------------------------------------
1010

11-
FROM node:16.15-alpine3.14 AS frontend
11+
FROM --platform=$BUILDPLATFORM node:16.15-alpine3.14 AS frontend
1212

1313
WORKDIR /code
1414

0 commit comments

Comments
 (0)