-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.drone.yml
128 lines (120 loc) · 3.84 KB
/
.drone.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
kind: pipeline
type: docker
name: BUILD-TEST
steps:
- name: Builder
image: alcapone1933/docker-dind:latest
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 20
- docker build --progress=plain -f builder.dockerfile -t alcapone1933/composerize:builder .
- rm -fv composerize.tar.gz
- docker create --name builder alcapone1933/composerize:builder
- docker cp builder:/opt/composerize.tar.gz ./composerize.tar.gz
- docker build --progress=plain -f builder-single.dockerfile --target composerize -t alcapone1933/composerize:composerize .
- docker build --progress=plain -f builder-single.dockerfile --target decomposerize -t alcapone1933/composerize:decomposerize .
- docker build --progress=plain -f builder-single.dockerfile --target composeverter -t alcapone1933/composerize:composeverter .
- docker rm -vf builder
- git add composerize.tar.gz && git commit -m "composerize.tar.gz"
- name: Build Multi-arch
image: alcapone1933/drone:docker-buildx
privileged: true
settings:
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
repo: alcapone1933/composerize
auto_tag: true
# tags: latest
dry_run: true
services:
- name: docker
image: alcapone1933/docker-dind:latest
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
trigger:
branch:
- master
event:
- push
# - pull_request
- custom
---
kind: pipeline
type: docker
name: BUILD-Dockerhub
steps:
- name: Builder
image: alcapone1933/docker-dind:latest
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_USER:
from_secret: DOCKER_USER
DOCKER_PASS:
from_secret: DOCKER_PASS
commands:
- sleep 5
- echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin
- docker build --progress=plain -f builder.dockerfile -t alcapone1933/composerize:builder --push .
- rm -fv composerize.tar.gz
- docker create --name builder alcapone1933/composerize:builder
- docker cp builder:/opt/composerize.tar.gz ./composerize.tar.gz
- docker build --progress=plain -f builder-single.dockerfile --target composerize -t alcapone1933/composerize:composerize --push .
- docker build --progress=plain -f builder-single.dockerfile --target decomposerize -t alcapone1933/composerize:decomposerize --push .
- docker build --progress=plain -f builder-single.dockerfile --target composeverter -t alcapone1933/composerize:composeverter --push .
- docker rm -vf builder
- git add composerize.tar.gz && git commit -m "composerize.tar.gz"
- name: Build Multi-arch Dockerhub
image: alcapone1933/drone:docker-buildx
privileged: true
settings:
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PASS
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
repo: alcapone1933/composerize
auto_tag: true
# tags: latest
- name: Build Multi-arch Dockerhub Version
image: alcapone1933/drone:docker-buildx
privileged: true
settings:
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PASS
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
repo: alcapone1933/composerize
# tags: latest
auto_tag: true
auto_tag_suffix: v1.6.12
services:
- name: docker
image: alcapone1933/docker-dind:latest
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
trigger:
# ref:
# - refs/heads/master
# - refs/tags/**
# - refs/pull/**
branch:
- master
event:
- custom
depends_on:
- BUILD-TEST