DevOps
[CircleCI] Setting Up a New Repository
→ 日本語版を読む[CircleCI] Setting Up a New Repository
Notes for my own reference on the steps to create a new repository on Bitbucket and integrate it with CircleCI.
- Create a new repository on Bitbucket.
- In CircleCI's [Projects], click [Set Up Project] for the target repository, select [Faster], and press [Set up Project].
- Clone the repository locally using
git clone. - Check all branches with
git branch -a.
> git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/circleci-project-setup
- Check out locally with
git checkout circleci-project-setup.
> git checkout circleci-project-setup
Switched to a new branch 'circleci-project-setup'
branch 'circleci-project-setup' set up to track 'origin/circleci-project-setup'.
> git branch
* circleci-project-setup
master
- Merge into the master branch.
> git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
> git merge circleci-project-setup
Updating 6787762..fdc7307
Fast-forward
.circleci/config.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 .circleci/config.yml
- Push to Bitbucket.
> git push
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://bitbucket.org/atsushi2022/terraform_ci_test.git
6787762..fdc7307 master -> master
After these steps, the master branch will contain the sample .circleci/config.yml.