-
Notifications
You must be signed in to change notification settings - Fork 0
/
concourse.yml
84 lines (83 loc) · 1.98 KB
/
concourse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
# Concourse pipeline: aptly-image
# $ fly -t $CC_TARGET sp -p aptly-image -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
resources:
- name: src-git
type: git
source:
uri: https://github.com/wdstar/((name))-image
branch: master
- name: base-image
type: docker-image
source:
repository: debian
tag: stable-slim
registry_mirror: https://((registry-mirror-domain))
# e.g. https://registry.docker.example.com:5000
ca_certs:
- domain: ((registry-mirror-domain))
# e.g. registry.docker.example.com:5000
cert: ((docker-reg-ca-cert))
check_every: 1h
- name: docker-reg
type: docker-image
source:
repository: ((docker-id))/((name))
#tag: latest
username: ((docker-id))
password: ((docker-pw))
check_every: 12h
jobs:
- name: build-img
plan:
- aggregate:
- get: src-git
params:
depth: 5
trigger: false
- get: base-image
#params:
# skip_download: true
trigger: true
- task: put-aptly-ver
attempts: 3
image: base-image
config:
platform: linux
outputs:
- name: aptly
run:
path: bash
args:
- -c
- |
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends ca-certificates gnupg dirmngr
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9E3E53F19C7DE460
apt-get update
apt-get install -y --no-install-recommends aptly
aptly version | awk -F':[ \t]+' '{ print $2 }' > aptly/ver
cat aptly/ver
- put: docker-reg
attempts: 3
params:
build: src-git
tag: aptly/ver
tag_as_latest: true
get_params:
skip_download: true
# - name: test-img
# plan:
# - get: docker-reg
# trigger: true
# - task: echo-aptly-ver
# image: docker-reg
# config:
# platform: linux
# run:
# path: bash
# args:
# - -c
# - |
# aptly version