Skip to content

Commit ee56bed

Browse files
authored
Merge pull request #3 from jianxiaoguo/dev
chore(drone): modify manifest.tmpl
2 parents 709b352 + ad818ed commit ee56bed

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.drone/drone.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ steps:
1919
from_secret: docker_username
2020
DOCKER_PASSWORD:
2121
from_secret: docker_password
22+
when:
23+
event:
24+
- push
25+
- tag
26+
- pull_request
2227

2328
- name: publish
2429
image: docker.io/drycc/go-dev
@@ -57,6 +62,11 @@ steps:
5762
environment:
5863
DEV_REGISTRY:
5964
from_secret: dev_registry
65+
when:
66+
event:
67+
- push
68+
- tag
69+
- pull_request
6070

6171
- name: publish
6272
image: docker.io/drycc/go-dev
@@ -90,6 +100,10 @@ steps:
90100
environment:
91101
DRYCC_REGISTRY:
92102
from_secret: drycc_registry
103+
when:
104+
event:
105+
- push
106+
- tag
93107

94108
- name: publish
95109
image: plugins/manifest
@@ -102,7 +116,6 @@ steps:
102116
environment:
103117
DEV_REGISTRY:
104118
from_secret: dev_registry
105-
106119
when:
107120
event:
108121
- push
@@ -111,4 +124,3 @@ steps:
111124
depends_on:
112125
- linux-amd64
113126
- linux-arm64
114-

.drone/manifest.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ tags:
77
{{/if}}
88
manifests:
99
-
10-
image: docker.io/drycc/go-dev:{{#if build.tag}}{{build.tag}}{{else}}latest-{{/if}}linux-amd64
10+
image: docker.io/drycc/go-dev:{{#if build.tag}}{{build.tag}}-{{else}}latest-{{/if}}linux-amd64
1111
platform:
1212
architecture: amd64
1313
os: linux
1414
-
15-
image: docker.io/drycc/go-dev:{{#if build.tag}}{{build.tag}}{{else}}latest-{{/if}}linux-arm64
15+
image: docker.io/drycc/go-dev:{{#if build.tag}}{{build.tag}}-{{else}}latest-{{/if}}linux-arm64
1616
platform:
1717
architecture: arm64
1818
os: linux

0 commit comments

Comments
 (0)