Objective
You have a working Docker project and the source code is managed in a Git repository. The goal of the tutorial is to push a Docker image to the GCP Artifact Registry. This process will include:- cloning the application from a Git repository
- building the Docker image
- pushing the Docker image to the GCP Artifact Registry.
Checklist
Checklist | Description |
|---|---|
Docker Registry Address | GCP Artifact Registry address |
Docker Registry User | Use “oauth2accesstoken” to push images against the GCP Artifact Registry |
Docker Registry Token/Password | Key file content, generated using Service Account of GCP |
Docker Registry User Permission | Service account must have permission to push images to the GCP Artifact Registry |
Configure Cloud-Specific credential
To configure credential details according to the cloud provider, please refer to this document: Docker Registry Setup For Cloud ProvidersConfigure Container Account
Configure GCP container account under Topology. FlexDeploy will use this integration to connect to the GCP Artifact Registry and push the image.- Navigate to Integrations
- Open the Containers tab
- Create a new Containers account by pressing the Create button. Create a new Docker Registry account of provider type DockerRegistry

Git Repository Structure
The Git repository should be a Docker-based application. A Dockerfile should be present in the application to build the image. A sample Git repository structure is given below:
Build Workflow
Navigate to the Workflows menu and create a workflow using the :Create_Button: button as highlighted below.








Project Configuration
Navigate to Projects and create a Project with a logical name (PushDockerImageToGCPArtifactRegistry in this case)

Source Control
Configure the SCM repository on the Source Control tab as shown below.
- Select the Sources section for configuring your source repository
- Select the appropriate Source Control Type
- Configure source repository details. For more detailed steps of source control configuration, please refer to Configure Source Control in FlexDeploy
Project Properties
To configure Project-specific properties, navigate to Configuration → Properties as shown below.
- Select the target Registry Account.
- Docker Image Name and Docker Image Tag are essential to build the docker image.
Target Properties
Topology
Navigate to Topology. Choose a Target Group on the left, or create a new one. You will see a list of Environments on the right with colored circles representing each Target.
- RED - The Endpoint is not configured
- YELLOW - some of the required properties are not set,
- GREEN - all required properties are set and the Endpoint is configured


Properties | Mandatory field | Description |
Docker Server | Optional | Docker server address. Required if Docker Unix Socket is not set. |
Docker Server Port | Optional | The port to connect to on the Docker server. |
Docker Unix Socket | Optional | The socket the Docker daemon listens on The default value is [/var/run/docker.sock] |
Registry Account | Optional | Docker Registry account with relevant details |
GIT Path | Optional | Path to the Git executable. Required only if git is not on PATH. |