Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ueberdosis/build-tools
🛠️ Docker image with CI/CD tools
https://github.com/ueberdosis/build-tools
ci docker gitlab
Last synced: about 1 month ago
JSON representation
🛠️ Docker image with CI/CD tools
- Host: GitHub
- URL: https://github.com/ueberdosis/build-tools
- Owner: ueberdosis
- License: gpl-3.0
- Created: 2019-04-19T10:30:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T12:59:58.000Z (about 1 year ago)
- Last Synced: 2024-04-13T23:15:37.624Z (8 months ago)
- Topics: ci, docker, gitlab
- Language: Shell
- Homepage: https://hub.docker.com/r/ueberdosis/build-tools
- Size: 54.7 KB
- Stars: 9
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛠️ Build Tools
Docker image with useful CI/CD tools optimized for use in GitLab CI pipelines.
## Tools included
- bash
- curl
- [Docker](https://docs.docker.com/engine/reference/commandline/cli/)
- [Docker Buildx](https://docs.docker.com/build/architecture/#buildx)
- [Docker Compose](https://docs.docker.com/get-started/08_using_compose/)
- git
- openssl
- [regctl](https://github.com/regclient/regclient) (for advanced image handling)
- rsync
- [sshpass](https://www.redhat.com/sysadmin/ssh-automation-sshpass) (for SSH servers with password authentication)
- [trivy](https://aquasecurity.github.io/trivy/)## Dependencies
Docker
## Getting started
Include the image via the **default.image** keyword in your `.gitlab-ci.yml`:
```yaml
default:
image: ueberdosis/build-tools:0.65.0
```## Usage examples
### Build images with Docker Compose
Specify `COMPOSE_FILE` if different from the default: `docker-compose.yml`. See [Docker Compose documentation](https://docs.docker.com/compose/compose-file/build/) for more details.
```yaml
build_app:
variables:
COMPOSE_FILE: docker-compose.build.yml
stage: build
script:
- docker-compose build app
- docker-compose push app
```### Run trivy
Adjust the image-name and tag after copying the command to your `.gitlab-ci.yml`. See [trivy documentation](https://aquasecurity.github.io/trivy/latest/docs/target/container_image/) for more details.
```yaml
container_scan:
script:
- |
trivy image \
--severity HIGH,CRITICAL \
--ignore-unfixed \
--exit-code 1 \
registry.gitlab.com/your-repository-path/your-image-name:your-tag
```## Contributing
To release a new version on Docker Hub run:
```bash
export VERSION="0.65.0"# Init buildx
docker buildx create --use# Build, tag and push
docker buildx build \
--platform linux/amd64,linux/arm64/v8 \
--tag ueberdosis/build-tools:$VERSION \
--push \
.
```## License
GNU General Public License v3.0