Sha256: 7f0e6188ac12972a5d7bfd61284c20a3c3fb3bb2e6a6b7c36285382d0c724aa0

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

defaults: &defaults
  working_directory: /tmp

version: 2

jobs:

  build:
    machine: true
    steps:
      - checkout
      - run: gem install handsomefencer-environment
      - run: ruby expose_env.rb
      - run: docker-compose build dev_app database
      - run: docker-compose run dev_app bin/rails db:create db:migrate test

  push:
    docker:
      - image: circleci/ruby:2.5.1-node-browsers
        environment:
          BASH_ENV: .env/circle/deploy.env
    steps:
      - checkout
      - setup_remote_docker
      - run: gem install handsomefencer-environment
      - run: ruby expose_env.rb
      - run: docker-compose up -d --build
      - run:
          name: Tag web image
          command: docker tag $(docker images | grep project_web | awk '{ print $3 }') rennmappe/bacchanal_web:$DEPLOY_TAG
      - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
      - run: docker push rennmappe/bacchanal_web:$DEPLOY_TAG

  deploy:
    docker:
      - image: circleci/ruby:2.5.1-node-browsers
        environment:
          BASH_ENV: .env/circle/deploy.env
    steps:
      - checkout
      - add_ssh_keys
      - run: bundle install --without production
      - run: ruby expose_env.rb
      - run: bin/rails docker:deploy

workflows:
  version: 2
  build-and-deploy:
    jobs:
      - build
      - push:
          requires:
            - build
          filters:
            branches:
              only: master
      - deploy:
          requires:
            - push
          filters:
            branches:
              only: master

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.9 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.8 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.7 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.6 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.5 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml