DAPE.work

GitLab CI: Docker Image Build & Push

Build and publish Docker images to a registry using GitLab CI pipeline.

Expected time saved: 4 hours/week

Complexity: Intermediate

Steps:

  1. 1 - Create .gitlab-ci.yml
  2. 2 - Log in to registry
  3. 3 - Build image
  4. 4 - Push to registry

Tools:
GitLab CI
Docker

Example

docker build .

Tags

gitlab docker ci-cd