-
Notifications
You must be signed in to change notification settings - Fork 15
PushArtifact
Bastien Abadie edited this page May 2, 2019
·
5 revisions
The push-artifact
command allows you to push images previously built in a Taskcluster task.
It can be used to produce interesting Continous Deployments workflows:
- build images with
build-compose
tasks on each pull request or branch push, and store them as artifacts - push those images with
push-artifact
only when a certain branch or tag is updated (production
ormaster
)
Argument | Type | Description | Sample values |
---|---|---|---|
--task-id |
Optional string, defaults to env variable TASK_ID set on Taskcluster |
The Taskcluster task id to use for dependent tasks lookups | deadbeef1234 |
--artifact-filter |
Optional string, defaults to public/**.tar
|
fnmatch glob expression filtering dependent tasks artifacts to upload | public/my-project/image*.tar |
--exclude-filter |
Optional string |
fnmatch glob expression filtering dependent tasks artifacts NOT to upload. Can be used in union with --artifact-filter
|
public/my-project/image-old-*.tar |
This command needs to find artifact in previous tasks, so you have to setup at least one dependency towards another task.
For example to add a dependency towards a task with base slug docker_build
, add the following to your task definition:
dependencies:
- {$eval: as_slugid("docker_build")}