digitalocean / artifactory-docker-resource

Artifactory Docker Resource for Concourse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Artifactory Docker Resource

Concourse resource for triggering, getting and putting new versions of docker / container image artifacts within Artifactory repositories.

Config

Complete source configuration details can be viewed in GoDoc on the Source struct

Check

Checks use the items domain to find container image artifacts with the supplied raw AQL or repo, image & tag combination. Each artifact found is returned as its own unique version for Concourse with the Repo, Image, Tag & Modified values from the Artifactory API. Modified is used to filter future checks to ensure that API queries stay performant.

Get

Get will download a compressed container image to the input directory defined along with metadata for the artifact. View GoDoc for GetParameter options

Put

Put supports publishing 1 compressed container image (output of docker save) using glob style patterns to locate the artifact to publish. View GoDoc for PutParameter options

Examples

Configure the resource type:

resource_types:
- name: artifactory
  type: docker-image
  source:
    repository: digitalocean/artifactory-docker-resource
    tag: latest

Source configuration using raw AQL for item.find:

resources:
- name: myapplication
  type: artifactory
  icon: application-export
  source:
    endpoint: https://example.com/artifactory/
    user: ci
    password: ((artifactory.password))
    aql:
      raw: '{"repo": "docker-local", "path": {"$match" : "myapp/myimage/*"}, "name": "manifest.json"}'
    host: artifactory.example.com

Source configuration using repo, path, name:

resources:
- name: myapplication
  type: artifactory
  icon: application-export
  source:
    endpoint: https://example.com/artifactory/
    user: ci
    password: ((artifactory.password))
    aql:
      repo: docker-local
      image: myapp/myimage
      tag: '*'

Publishing artifacts to Artifactory:

- put: myapplication
  params:
    repo_path: code
    pattern: built/image.tar
    target: docker-local

About

Artifactory Docker Resource for Concourse

License:Apache License 2.0


Languages

Language:Go 93.4%Language:Makefile 3.9%Language:Dockerfile 2.8%