chore: Use circleci node image with docker for deploy step

This commit is contained in:
Robert Prehn 2020-12-18 15:34:49 -06:00
parent 7294325447
commit 4aafed3658

View file

@ -1,6 +1,5 @@
stages: stages:
- build - prebuild_and_test
- test
- deploy - deploy
cache: cache:
@ -17,8 +16,8 @@ variables:
services: services:
- name: postgres:12 - name: postgres:12
build: prebuild:
stage: build stage: prebuild_and_test
image: "docker" image: "docker"
services: services:
- docker:19.03.12-dind - docker:19.03.12-dind
@ -26,13 +25,13 @@ build:
- docker build --pull -t $CI_REGISTRY_IMAGE . - docker build --pull -t $CI_REGISTRY_IMAGE .
test: test:
stage: test stage: prebuild_and_test
image: "elixir:1.10" image: "elixir:1.10"
script: script/cibuild script: script/cibuild
deploy: deploy:
stage: deploy stage: deploy
image: "node:current-alpine" image: "circleci/node:14.5"
script: script:
- echo $CI_REGISTRY - echo $CI_REGISTRY
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY