Docker image with useful CI/CD tools optimized for use in GitLab CI pipelines.
- bash
- curl
- Docker
- Docker Buildx
- Docker Compose
- git
- openssl
- regctl (for advanced image handling)
- rsync
- sshpass (for SSH servers with password authentication)
- trivy
Docker
Include the image via the default.image keyword in your .gitlab-ci.yml
:
default:
image: ueberdosis/build-tools:0.65.0
Specify COMPOSE_FILE
if different from the default: docker-compose.yml
. See Docker Compose documentation for more details.
build_app:
variables:
COMPOSE_FILE: docker-compose.build.yml
stage: build
script:
- docker-compose build app
- docker-compose push app
Adjust the image-name and tag after copying the command to your .gitlab-ci.yml
. See trivy documentation for more details.
container_scan:
script:
- |
trivy image \
--severity HIGH,CRITICAL \
--ignore-unfixed \
--exit-code 1 \
registry.gitlab.com/your-repository-path/your-image-name:your-tag
To release a new version on Docker Hub run:
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 \
.
GNU General Public License v3.0