Browse Source

Update config.yml

main
ndrg13 6 years ago
committed by GitHub
parent
commit
dbb8f32172
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 50
      .circleci/config.yml

50
.circleci/config.yml

@ -1,21 +1,21 @@
version: 2.1 version: 2.1
executors: executors:
node-executor: node-executor:
docker:
- image: circleci/node:12
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
docker:
- image: circleci/node:12
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
node-and-postgresql-executor: node-and-postgresql-executor:
docker:
- image: circleci/node:12
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
- image: circleci/postgres:9.6.2-alpine
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
docker:
- image: circleci/node:12
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
- image: circleci/postgres:9.6.2-alpine
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASSWORD
environment: environment:
DATABASE_URL: "postgres://postgres:$POSTGRES_PASSWORD@localhost:5432/postgres" DATABASE_URL: "postgres://postgres:$POSTGRES_PASSWORD@localhost:5432/postgres"
JWT_SECRET: string JWT_SECRET: string
@ -24,6 +24,7 @@ executors:
API_PROTOCOL: http API_PROTOCOL: http
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: $POSTGRES_PASSWORD POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: postgres
jobs: jobs:
build: build:
executor: node-executor executor: node-executor
@ -67,23 +68,6 @@ jobs:
- run: - run:
name: Run end to end test name: Run end to end test
command: yarn test:e2e command: yarn test:e2e
push_to_hub:
executor: buildpack
environment:
IMAGE_NAME: testimg
steps:
- checkout
- setup_remote_docker
- run:
name: Build Docker image
command: docker build -t $IMAGE_NAME:app .
- run:
name: Login to Docker Hub
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_LOGIN" --password-stdin
- run:
name: Push to Docker Hub
command: docker push $IMAGE_NAME:app
workflows: workflows:
version: 2 version: 2
integration: integration:
@ -98,7 +82,3 @@ workflows:
- test_end_to_end: - test_end_to_end:
requires: requires:
- build - build
- push_to_hub:
requires:
- test
- test_end_to_end
Loading…
Cancel
Save