Concourse pipelines
Cheatsheets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| # Login
fly -t prod login -c https://deployer.cnsmeraffs.com
fly --target devs login --team-name devs --concourse-url https://deployer.cnsmeraffs.com/
# Lists
fly targets
# Triggering jobs
fly -t devs unpause-pipeline -p pr-auth \
&& time fly -t devs trigger-job -w -j pr-auth/build-test
fly -t prod unpause-pipeline -p auth-qa \
&& time fly -t prod trigger-job -w -j auth-qa/build-test-publish-image
h
# clear cache
fly -t prod clear-task-cache --job userdb-qa/build-test-publish-image --step build
fly -t prod clear-task-cache --job conaff-qa/build-test-publish-image --step build
|
Jobs
Sample of docker pull from docker hub and ecr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| resources:
- name: dockerhub_myrepo
type: docker-image
source:
repository: teliaoss/github-pr-resource
tags: [build, conaff]
- name: ecr_myrepo
type: docker-image
source:
repository: 123456.dkr.ecr.us-west-2.amazonaws.com/ca/concourse
tag: latest
tags: [build, conaff]
jobs:
- name: pull-images
plan:
- get: dockerhub_myrepo
tags: [build, conaff]
- get: ecr_myrepo
tags: [build, conaff]
|
References
??alahalc