From 7d1d95f8fccf548ebfe5a8fae179acea9bf0cb3d Mon Sep 17 00:00:00 2001 From: William O'Brien Date: Thu, 29 Oct 2020 16:23:21 +0000 Subject: [PATCH] ci(CircleCI): Use docker authenticated pulls (LLC-551) (#328) --- .circleci/config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 84f169a3c..0c4374750 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,4 @@ -version: 2 +version: 2.1 machine: services: - docker @@ -7,7 +7,13 @@ jobs: build: docker: - image: node:8.17.0@sha256:ee25271e00572cb09d095f6b35880a284eac570c17452644bc67fd1d8dc7f9f7 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD - image: mongo:3.7.9@sha256:fbc5b316430a970543d2e1668164c764977e777a74ffb05c873d0e5df499b6fb + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD environment: - NPM_CONFIG_LOGLEVEL: warn - WINSTON_CONSOLE_LEVEL: none @@ -39,3 +45,10 @@ jobs: - deploy: name: Semantic Release command: npm run semantic-release + +workflows: + build: + jobs: + - build: + context: + - docker-hub-creds