From 0ac878a9626aa3f086ce6198d4b05d7f19f89153 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Wed, 17 Aug 2022 23:01:26 +0200 Subject: [PATCH] Use CircleCI machine platform --- .circleci/config.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 15609b6d9..2fbe39bac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,12 +17,15 @@ commands: description: "Ensure built assets are up to date" steps: - checkout - - setup_remote_docker + # - setup_remote_docker # - run: npm ci - - run: docker build -t sphinx_rtd_theme:latest . - - run: docker run --cidfile=.container_id --mount type=bind,source="${CIRCLE_WORKING_DIRECTORY}/src",target=/project/src,readonly sphinx_rtd_theme:latest - - run: docker cp "$(cat .container_id):/project/sphinx_rtd_theme" . - - run: docker cp "$(cat .container_id):/project/package-lock.json" . + - run: make docker-images + - run: make docker-run + - run: make docker-copy-assets + # - run: docker build -t sphinx_rtd_theme:latest . + # - run: docker run --cidfile=.container_id --mount type=bind,source="${CIRCLE_WORKING_DIRECTORY}/src",target=/project/src,readonly sphinx_rtd_theme:latest + # - run: docker cp "$(cat .container_id):/project/sphinx_rtd_theme" . + # - run: docker cp "$(cat .container_id):/project/package-lock.json" . - run: name: Ensure built assets are up to date command: | @@ -35,8 +38,10 @@ commands: jobs: build: - docker: - - image: docker:17.05.0-ce-git + machine: # executor type + image: ubuntu-2004:202010-01 # # recommended linux image - includes Ubuntu 20.04, docker 19.03.13, docker-compose 1.27.4 + # docker: + # - image: docker:17.05.0-ce-git steps: - run-build: {} py27: