Skip to content

ueberdosis/build-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Build Tools

Docker image with useful CI/CD tools optimized for use in GitLab CI pipelines.

Tools included

Dependencies

Docker

Getting started

Include the image via the default.image keyword in your .gitlab-ci.yml:

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 for more details.

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 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

Contributing

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 \
  .

License

GNU General Public License v3.0