Adding an Inline Artifact
Create a reference to artifacts defined inline.
In the build pipeline, to store the Managed Build stage output, you need an OCI Container Registry repository or an Artifact Registry repository.
You must create an artifact reference to point to the repository location containing the build output. Before you create an artifact reference, you must have a DevOps project.
You can create an inline artifact reference for the following types of artifact sources: instance group deployment configurations, general artifacts, Kubernetes manifests, and command specification.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
- Open the navigation menu and click Developer Services. Under DevOps, click Projects.
- On the DevOps Projects page, select the project for which you want to add an artifact.
- On the details page of the project, from the left side, click Artifacts.
- On the Artifacts page, click Add artifact.
- In the Add artifact panel, provide the following details:
- Enter a name for the artifact.
- For Type, select Instance group deployment configuration, General artifact, Kubernetes manifest, or Command specification.
A deployment configuration file defines the artifacts to be downloaded to the instance and the location where the artifacts must be copied. For more information, see Deployment Configuration File.
A command specification file contains user defined commands and steps that are run in a deployment pipeline. For more information, see Command Specification.
- For Artifact source, select Inline.
- For Value, enter the contents of the artifact that you want to deploy.
- Select Allow parameterization if you want to replace the placeholders in the artifact content by argument values provided during the deployment.
For more information, see Configuring Parameters.
- (Optional) To add tags to the artifact, click Show tagging options. Tagging is a metadata system that lets you organize and track the resources in your tenancy.
If you have permissions to create a resource, you also have permissions to add free-form tags to that resource.
To add a defined tag, you must have permissions to use the tag namespace.
For more information, see Resource Tags.
- Click Add.
To create an inline artifact reference, run the
create-inline-artifact
command:oci devops deploy-artifact create-inline-artifact
Required parameters for the
create-inline-artifact
command:--argument-substitution-mode
--base64-encoded-content
--artifact-type
--project-id
To get all the commands for
deploy-artifact
:oci devops deploy-artifact -h
To get help for the
create-inline-artifact
command:oci devops deploy-artifact create-inline-artifact -h
To create an inline artifact reference, use the
CreateDeployArtifact
operation. For thedeployArtifactType
attribute, select one of the following values:DEPLOYMENT_SPEC
KUBERNETES_MANIFEST
GENERIC_FILE