https://github.com/codacy/ci-base
Base docker image used by Codacy in Continuous Integration environments such as CircleCI.
https://github.com/codacy/ci-base
Last synced: 2 months ago
JSON representation
Base docker image used by Codacy in Continuous Integration environments such as CircleCI.
- Host: GitHub
- URL: https://github.com/codacy/ci-base
- Owner: codacy
- Created: 2018-08-14T16:53:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T12:12:20.000Z (almost 2 years ago)
- Last Synced: 2025-10-20T02:12:44.929Z (3 months ago)
- Language: Makefile
- Size: 35.2 KB
- Stars: 1
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ci-base
[](https://www.codacy.com/gh/codacy/ci-base?utm_source=github.com&utm_medium=referral&utm_content=codacy/ci-base&utm_campaign=Badge_Grade)
[](https://microbadger.com/images/codacy/ci-base:0.1.0-init.1 "Get your own version badge on microbadger.com")
Base docker image used by Codacy in Continuous Integration environments such as CircleCI.
## Usage
#### CircleCI
Use this image directly on CircleCI for simple steps
```
version: 2
jobs:
build:
working_directory: /app
docker:
- image: codacy:ci-base:1.0.0
steps:
- checkout
```
#### Base for other Dockerfiles
Use this image as the base for other Docker images.
Checkout the [codacy/ci-aws](https://github.com/codacy/ci-aws) as example.
# Build and Publish
The pipeline in `circleci` can deploy this for you when the code is pushed to the remote.
You can also run everything locally using the makefile
```
$ make help
---------------------------------------------------------------------------------------------------------
build and deploy help
---------------------------------------------------------------------------------------------------------
build build docker image
get-next-version-number get next version number
git-tag tag the current commit with the next version and push
push-docker-image push the docker image to the registry (DOCKER_USER and DOCKER_PASS mandatory)
push-latest-docker-image push the docker image with the "latest" tag to the registry (DOCKER_USER and DOCKER_PASS mandatory)
```