Table of Contents | ||||
---|---|---|---|---|
|
...
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.
We will walk through each of the FlexDeploy items that will need to be created/configured to accomplish this goal and have the Docker image published to the GCP Artifact Registry in a very short amount of time.
...
To configure credential details according to the cloud provider, please refer to this document: Docker Registry Setup For Cloud Providers
Configure Container Account
...
The steps of the workflow execution can be configured from the Definition tab. Below is a sample build workflow.
...
Step 1: Clone Project Sources
This step will clone the Git repository codebase into the Project’s execution working directory. The Git URL will be retrieved from Source Control configured under Project configuration.
...
Git Codebase
...
EXPORTED CODEBASE
...
Step 2: Build Image
Below is the Docker plugin (buildImage operation) configuration. This step will build and push a Docker image to the GCP Artifact Registry.
...
Select the Sources section for configuring your source repository
Select the appropriate Source Control Type
Configure source repositorydetails. For more detailed steps of source control configuration, please refer to Configure Source Control in FlexDeploy
Anchor | ||||
---|---|---|---|---|
|
...
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.
...
Color coding represents:
...
From here, for detailed steps on how to initiate build and push a Docker image, please refer to Build Execution through FlexDeploy for Docker Plugin
Congratulations! You have successfully completed the Push Docker Image to GCP Artifact Registry tutorial.
...