How to configure Artifactory docker private repo in the GitLab Pipeline to pull the base image:

ARTIFACTORY: Configuring the Docker private repo in the GitLab Pipeline

AuthorFullName__c
Sandeep Anikapati
articleNumber
000005255
ft:sourceType
Salesforce
FirstPublishedDate
2022-04-20T11:29:04Z
lastModifiedDate
2022-04-20
VersionNumber
5

This article describes how to configure an Artifactory docker private repository in the GitLab Pipeline to pull the base image:

Sample gitlab-ci.yml file:

stages:
- build
test:
stage: build
image: test.jfrog.io/docker-local/ubuntu:latest
stages: 
  - build
test:
  stage: build
  image: test.jfrog.io/docker-local/ubuntu:latest

To download the base docker image from the Artifactory, you need to add a variable (i.e “DOCKER_AUTH_CONFIG”) with Artifactory configuration details in it.

Add the below variable to the GitLab variables: