{
  "name": "publish-artifact",
  "title": "Publish a build artifact",
  "description": "Upload a build artifact to an artifact registry with an HTTP PUT via curl, using credentials read from a Kubernetes Secret.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "curl"
  ],
  "latestVersion": "1.0.1",
  "versions": [
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "file-path",
    "registry-url",
    "credentials-secret-key",
    "credentials-secret-name"
  ],
  "images": [
    "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/publish-artifact.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/publish-artifact/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/publish-artifact/",
  "entrypoint": "publish",
  "parameterDetails": [
    {
      "name": "file-path",
      "title": "File path",
      "description": "Path to the file to upload (in the run's filesystem / mounted volume).",
      "type": "string",
      "required": true,
      "example": "/workspace/dist/app-1.2.3.tgz"
    },
    {
      "name": "registry-url",
      "title": "Registry URL",
      "description": "Destination URL to PUT the artifact to.",
      "type": "string",
      "required": true,
      "example": "https://artifacts.internal/repo/app-1.2.3.tgz"
    },
    {
      "name": "credentials-secret-key",
      "title": "Credentials secret key",
      "description": "Key within the Secret that holds the credentials.",
      "type": "string",
      "required": false,
      "default": "credentials"
    },
    {
      "name": "credentials-secret-name",
      "title": "Credentials secret name",
      "description": "Name of the Kubernetes Secret holding the registry credentials, formatted as \"user:password\".",
      "type": "string",
      "required": false,
      "default": "artifact-registry-credentials"
    }
  ],
  "imageDetails": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/publish-artifact/1.0.1.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/publish-artifact/1.0.1/template.yaml"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/publish-artifact/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/publish-artifact",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
