Skip to content

Commit e73c705

Browse files
author
lijianguo
committed
chore(drone): modify manifest.tmpl
1 parent 709b352 commit e73c705

3 files changed

Lines changed: 18 additions & 6 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: docker.io/drycc/go-dev:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
1+
image: docker.io/jianxiaoguo/go-dev:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
22
{{#if build.tags}}
33
tags:
44
{{#each build.tags}}
@@ -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/jianxiaoguo/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/jianxiaoguo/go-dev:{{#if build.tag}}{{build.tag}}-{{else}}latest-{{/if}}linux-arm64
1616
platform:
1717
architecture: arm64
1818
os: linux

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION ?= $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
22
DEV_REGISTRY ?= docker.io
3-
IMAGE_PREFIX ?= drycc
3+
IMAGE_PREFIX ?= jianxiaoguo
44
IMAGE := ${DEV_REGISTRY}/${IMAGE_PREFIX}/go-dev:${VERSION}
55
PLATFORM ?= linux/amd64,linux/arm64
66

0 commit comments

Comments
 (0)