https://github.com/digitalocean/artifactory-docker-resource
Artifactory Docker Resource for Concourse
https://github.com/digitalocean/artifactory-docker-resource
aql artifactory concourse docker
Last synced: about 2 months ago
JSON representation
Artifactory Docker Resource for Concourse
- Host: GitHub
- URL: https://github.com/digitalocean/artifactory-docker-resource
- Owner: digitalocean
- License: apache-2.0
- Created: 2020-07-10T19:07:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T15:04:35.000Z (almost 6 years ago)
- Last Synced: 2025-01-15T00:19:19.538Z (over 1 year ago)
- Topics: aql, artifactory, concourse, docker
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 106
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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](https://godoc.org/github.com/digitalocean/artifactory-docker-resource#Source)
## Check
Checks use the `items` domain to `find` container image artifacts with the supplied raw [AQL](https://www.jfrog.com/confluence/display/JFROG/Artifactory+Query+Language) 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](https://godoc.org/github.com/digitalocean/artifactory-docker-resource#GetParameters)
## 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](https://godoc.org/github.com/digitalocean/artifactory-docker-resource#PutParameters)
## Examples
Configure the resource type:
```yaml
resource_types:
- name: artifactory
type: docker-image
source:
repository: digitalocean/artifactory-docker-resource
tag: latest
```
Source configuration using raw AQL for `item.find`:
```yaml
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:
```yaml
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:
```yaml
- put: myapplication
params:
repo_path: code
pattern: built/image.tar
target: docker-local
```