File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1313WORKDIR /code
1414
You can’t perform that action at this time.
0 commit comments