Sakuten/backend

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2
jobs:
  build:
    docker:
      - image: docker:17.07.0-ce-git
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Login
          command: docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
      - run:
          name: Build image
          command: |
            DOCKER_IMAGE_NAME=sakuten/backend:$(./scripts/ci/docker_tag_name.sh)
            docker build -t ${DOCKER_IMAGE_NAME} .
      - run:
          name: Push
          command: |
            DOCKER_IMAGE_NAME=sakuten/backend:$(./scripts/ci/docker_tag_name.sh)
            docker push ${DOCKER_IMAGE_NAME}