Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spacebabies/ci
Docker images for Continuous Integration of our Rails apps
https://github.com/spacebabies/ci
bitbucket continuous-integration docker dockerfile rails ruby ruby-on-rails sentry
Last synced: 4 days ago
JSON representation
Docker images for Continuous Integration of our Rails apps
- Host: GitHub
- URL: https://github.com/spacebabies/ci
- Owner: spacebabies
- License: mit
- Created: 2018-10-14T20:04:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T11:33:35.000Z (over 4 years ago)
- Last Synced: 2024-11-22T11:43:03.826Z (2 months ago)
- Topics: bitbucket, continuous-integration, docker, dockerfile, rails, ruby, ruby-on-rails, sentry
- Language: Dockerfile
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CI image for Rails
Use this to run Continuous Integration.
These examples use `2.4.1` for the Ruby version, which has the corresponding
Dockerfile. Change it to the Ruby version used in your project.## Configure for a project
The examples build and deploy to staging and production. Add or remove
environments to match yours.1. Create `bitbucket_pipelines.yml`. Two database examples are in this repo.
2. Set the correct Ruby version in it.
3. Commit and push so that Bitbucket knows what to do.
4. Enable Pipelines in the project.
5. Set the project environment variables in Bitbucket (see below).## Use every day
### Bitbucket Pipelines
You will need some environment variables.
**Repository Environment Variables**
- [ ] `SENTRY_PROJECT` - the name of the project in Sentry
**Deployment Environment Variables**
_When deployed to Cloud 66:_
- [ ] `REDEPLOYMENT_HOOK` - the production Cloud 66 redeployment hook
- [ ] `STAGING_REDEPLOYMENT_HOOK` - same for staging (if applicable)**Account Variables**
- [ ] `SENTRY_AUTH_TOKEN` - Sentry authentication token
- [ ] `SENTRY_ORG` - should be set to `space-babies`## Dev on this thing
For an entirely new Ruby version, copy one of the existing directories.
Then build the image and/or make changes to the Dockerfile so that it builds
cleanly and has everything required.### Build and push to Docker hub
Create a repo on Docker Hub if it doesn't exist already.
To publish an image:
``` shell
docker build -t spacebabies/ci-2.4.1:latest 2.4.1
docker push spacebabies/ci-2.4.1:latest
```## Questions?
[email protected]
https://www.spacebabies.nl