Sha256: 0a689f64506778de4b21c52b68ed26d6bc1dbe28e539e1abf75d90deff9cf715

Contents?: true

Size: 1.53 KB

Versions: 72

Compression:

Stored size: 1.53 KB

Contents

defaults: &defaults
  working_directory: /tmp

version: 2

jobs:

  build:
    machine: true
    steps:
      - checkout
      - run: gem install handsome_fencer-circle_c_i
      - run: ruby .circleci/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

72 entries across 41 versions & 2 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.33 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.32 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.31 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.30 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml.workflow-example
handsome_fencer-circle_c_i-0.1.30 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.29 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml.workflow-example
handsome_fencer-circle_c_i-0.1.29 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.28 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml.workflow-example
handsome_fencer-circle_c_i-0.1.28 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.27 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.27 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.26 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.26 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.25 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.25 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.24 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.24 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.23 lib/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.23 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml
handsome_fencer-circle_c_i-0.1.22 lib/generators/handsome_fencer/circle_c_i/templates/circleci/config.yml