kawasin73 / rails_docker_template

Docker template for Rails app or Rails + Webpacker app development.
80 stars 34 forks source link

Automante Deploy #6

Closed kawasin73 closed 5 years ago

kawasin73 commented 5 years ago

build new branch and push it automatically in CI.

scripts : #2

kawasin73 commented 5 years ago

show current branch in git

git rev-parse --abbrev-ref HEAD

https://makandracards.com/makandra/12107-git-show-current-branch-name-only

docker-compose on circle ci

it is not able to mount host directory to remote docker container.

It is not possible to mount a folder from your job space into a container in Remote Docker (and vice versa).

https://circleci.com/docs/2.0/building-docker-images/#mounting-folders

https://circleci.com/docs/2.0/docker-compose/#using-docker-compose-with-docker-executor

USE Machine Executor in which docker-compose works fully as expected.

https://circleci.com/docs/2.0/docker-compose/#using-docker-compose-with-machine-executor

add ssh key to circle ci

the default ssh key set by circle ci is read only. I need to use writable ssh key.

https://circleci.com/docs/2.0/add-ssh-key/#steps

ssh-keygen -m pem -f $(pwd)/sample
kawasin73 commented 5 years ago

DONE