Example of continue integration to Docker Hub
✓ Published0🌍 Public
SServuc
Last edited Aug 6, 2018
Created on Aug 6, 2018
This example shows a GitLab CI/CD pipeline configuration for automating Docker image builds and pushes. The `.gitlab-ci.yml` file defines a single `build` stage that uses the `docker:latest` image to execute the build and push steps. It sets a `CONTAINER_TAG` variable combining an image name with the CI build reference name, then uses Docker commands (`docker build` and `docker push`) to compile the image from the current directory and upload it to Docker Hub. The configuration leverages GitLab's CI environment variables and predefined `$CI_BUILD_REF_NAME` for tagging.
AI-generated description