Browse Source

docker build && push

main
Gianni GIUDICE 6 years ago
parent
commit
d8cd030cce
  1. 4
      .circleci/config.yml

4
.circleci/config.yml

@ -63,7 +63,7 @@ jobs:
- run: yarn test:ci - run: yarn test:ci
e2e: e2e:
docker: docker:
- image: circleci/node:12 # the primary container, where your job's commands are run
- image: circleci/node:12
environment: environment:
DATABASE_URL: postgres://psqluser:psqlpassword@localhost:5432/psdb DATABASE_URL: postgres://psqluser:psqlpassword@localhost:5432/psdb
JWT_SECRET: hello JWT_SECRET: hello
@ -94,6 +94,8 @@ jobs:
- run: docker tag app:latest $IMAGE_NAME:$CIRCLE_BUILD_NUM - run: docker tag app:latest $IMAGE_NAME:$CIRCLE_BUILD_NUM
- run: docker push $IMAGE_NAME:$CIRCLE_BUILD_NUM - run: docker push $IMAGE_NAME:$CIRCLE_BUILD_NUM
docbuild: docbuild:
docker:
- image: circleci/node:12
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:

Loading…
Cancel
Save