feat: Use buildx to time docker builds

This commit is contained in:
Robert Prehn 2021-03-25 23:34:26 -05:00
parent e84e01d6b8
commit 6f97130497
2 changed files with 2 additions and 1 deletions

View file

@ -80,7 +80,7 @@ build_image_for_commit:
script:
- docker login "https://${CI_REGISTRY}" -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- docker buildx build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
deploy_to_tags:

View file

@ -35,6 +35,7 @@ RUN MAKE=cmake mix compile
FROM node:15.0
WORKDIR /root/app/apps/app/assets/
ADD ./apps/app/assets/node_modules /root/app/apps/assets/node_modules
COPY --from=0 /root/app/ /root/app/
RUN npm install
RUN npm run deploy