Browse Source

Add debugs for docker script

hotfix/wow
anthony 5 years ago
parent
commit
7d0df670e0
  1. 43
      .circleci/config.yml

43
.circleci/config.yml

@ -1,11 +1,15 @@
docker-config:
- &docker-config
image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
version: 2.1 version: 2.1
jobs: jobs:
install: install:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -23,10 +27,7 @@ jobs:
lint: lint:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -48,10 +49,7 @@ jobs:
- src - src
test-ci: test-ci:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -62,10 +60,7 @@ jobs:
command: yarn test command: yarn test
test-e2e: test-e2e:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
- image: circleci/postgres:9.6-alpine - image: circleci/postgres:9.6-alpine
auth: auth:
username: anthonyjhoiro username: anthonyjhoiro
@ -88,10 +83,7 @@ jobs:
gendoc: gendoc:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
steps: steps:
- checkout - checkout
@ -108,10 +100,7 @@ jobs:
builddocker: builddocker:
docker: docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
- *docker-config
steps: steps:
- checkout - checkout
@ -124,8 +113,12 @@ jobs:
command: | command: |
TAG=app TAG=app
IMAGE_NAME=anthonyjhoiro/my-awesome-ci-expr IMAGE_NAME=anthonyjhoiro/my-awesome-ci-expr
IMAGE_NAME_BUILDNUM=$IMAGE_NAME:${CIRCLE_BUILD_NUM}
IMAGE_NAME_BUILDNUM=$IMAGE_NAME:${CIRCLE_BUILD_NUM}
IMAGE_NAME_LATEST=$IMAGE_NAME:latest IMAGE_NAME_LATEST=$IMAGE_NAME:latest
echo $APP
echo $IMAGE_NAME
echo $IMAGE_NAME_BUILDNUM
echo $IMAGE_NAME_LATEST
docker build -t app . docker build -t app .
docker tag $APP $IMAGE_NAME_BUILDNUM docker tag $APP $IMAGE_NAME_BUILDNUM
docker tag $APP $IMAGE_NAME_LATEST docker tag $APP $IMAGE_NAME_LATEST

Loading…
Cancel
Save