Skip to content

Commit 5142c39

Browse files
committed
Add arm64 and amd64 Drone pipelines
1 parent 001486a commit 5142c39

File tree

1 file changed

+75
-5
lines changed

1 file changed

+75
-5
lines changed

.drone.yml

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
---
2+
kind: pipeline
3+
name: linux-amd64
4+
5+
platform:
6+
os: linux
7+
arch: amd64
8+
9+
steps:
10+
- name: build
11+
image: plugins/docker:linux-amd64
12+
settings:
13+
dry_run: true
14+
dockerfile: Dockerfile.ci
15+
repo: stefanprodan/podinfo
16+
tag: linux-amd64
17+
when:
18+
event:
19+
- push
20+
- pull_request
21+
22+
- name: push-commit
23+
image: plugins/docker:linux-amd64
24+
settings:
25+
dockerfile: Dockerfile.arm
26+
repo: stefanprodan/podinfo
27+
tag: "amd64-${DRONE_COMMIT_SHA:0:8}"
28+
username:
29+
from_secret: DOCKER_USERNAME
30+
password:
31+
from_secret: DOCKER_PASSWORD
32+
when:
33+
branch:
34+
- master
35+
36+
---
37+
kind: pipeline
38+
name: linux-arm64
39+
40+
platform:
41+
os: linux
42+
arch: arm64
43+
44+
steps:
45+
- name: build
46+
image: plugins/docker:linux-arm64
47+
settings:
48+
dry_run: true
49+
dockerfile: Dockerfile.arm
50+
repo: stefanprodan/podinfo
51+
tag: linux-arm64
52+
when:
53+
event:
54+
- push
55+
- pull_request
56+
57+
- name: push-commit
58+
image: plugins/docker:linux-arm64
59+
settings:
60+
dockerfile: Dockerfile.arm
61+
repo: stefanprodan/podinfo
62+
tag: "arm64-${DRONE_COMMIT_SHA:0:8}"
63+
username:
64+
from_secret: DOCKER_USERNAME
65+
password:
66+
from_secret: DOCKER_PASSWORD
67+
when:
68+
branch:
69+
- master
70+
171
---
272
kind: pipeline
373
name: linux-arm
@@ -12,23 +82,23 @@ steps:
1282
settings:
1383
dry_run: true
1484
dockerfile: Dockerfile.arm
15-
repo: stefanprodan/podinfo-arm
85+
repo: stefanprodan/podinfo
1686
tag: linux-arm
1787
when:
1888
event:
1989
- push
2090
- pull_request
2191

22-
- name: push
92+
- name: push-commit
2393
image: plugins/docker:linux-arm
2494
settings:
2595
dockerfile: Dockerfile.arm
26-
repo: stefanprodan/podinfo-arm
27-
tag: "${DRONE_COMMIT_SHA:0:8}"
96+
repo: stefanprodan/podinfo
97+
tag: "arm-${DRONE_COMMIT_SHA:0:8}"
2898
username:
2999
from_secret: DOCKER_USERNAME
30100
password:
31101
from_secret: DOCKER_PASSWORD
32102
when:
33103
branch:
34-
- master
104+
- master

0 commit comments

Comments
 (0)