About 805,000 results
Open links in new tab
  1. Use Docker to build Docker images | GitLab Docs - GitLab

    You can use GitLab CI/CD with Docker to create Docker images. For example, you can create a Docker image of your application, test it, and push it to a container registry. To run Docker commands in your CI/CD jobs, you must configure GitLab Runner to support docker commands. This method requires privileged mode.

  2. GitLab CI/CD docker image build versening - Medium

    Mar 21, 2023 · One common use case for GitLab CI is building Docker images, which can then be deployed to various environments. In this article, we will walk through the process of building a Docker image...

  3. Tagging a Docker image with Version in Gitlab with yaml

    Jul 4, 2018 · I'm currently digging in Gitlab CI. I would like to add a way in my YAML files to tag my docker images generated by the build step and pushed to my Gitlab Registry with a Version number composed in the following fashion : MajorVersion.Minorversion.BuildNumber.

  4. How to version Docker images with GitLab CI/CD

    Feb 11, 2022 · For this example we will use GitLab Container Registry and we will version the images by commit. 1.Docker Login (GitLab Container registry) 2.Build image with ID COMMIT SHA. 3.Get ID from previous image. 4.Retag image latest with digest from previous image. 5.Push image latest and commit sha. 6.Pipeline. 8.Images in Docker Registry.

  5. How to do gitversion in Gitlab CI with docker? - Stack Overflow

    Jan 10, 2020 · How can I get Gitversion to determine the version for my build? I use it for all code that's not built using Docker and I could use that, but I feel it should work in a container as well. Also, both pwd and echo $(pwd) do not show up in the output, how can I get something in the output? both pwd and echo $(pwd) do not show up in the output,

  6. How to Build Docker Images In a GitLab CI Pipeline

    Dec 21, 2024 · To build Docker images in a GitLab CI pipeline, we need to define a series of steps that will run the Docker build command and push the resulting images to a Docker registry. Here is an example of a GitLab CI configuration file that builds a Docker image for a simple Node.js application:

  7. Best practices for building docker images with GitLab CI

    Mar 4, 2019 · In this post, I’ll show you how we build docker images with a simple .gitlab-ci.yml file. Let’s not waste any time. Here is a .gitlab-ci.yml file that you can drop in directly without any modification in a project with a working Dockerfile. It will: All docker images will be pushed to the GitLab Container Registry.

  8. How do I use Docker with GitLab CI/CD? - Dockerpros

    To use Docker with GitLab CI/CD, define a Docker image in your `.gitlab-ci.yml` file. This enables containerized builds and tests, ensuring consistency across environments.

  9. Using docker build · Docker · Ci · Help · GitLab

    GitLab CI/CD allows you to use Docker Engine to build and test Docker-based projects. One of the new trends in Continuous Integration/Deployment is to: Create an application image. Run tests against the created image. Push image to a remote registry. Deploy to a …

  10. Version format for the packages and Docker images | GitLab Docs

    Packages built by the omnibus-gitlab continuous integration pipelines have a version string in the format <build_version>-<build_iteration>. The pipelines generally produce three types of packages: feature branch builds; nightly builds; tagged release builds

  11. Some results have been removed
Refresh