Skip to content

Commit 8ccba47

Browse files
author
lijianguo
committed
chore(drone): modify manifest.tmpl in self
1 parent 1e58892 commit 8ccba47

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.drone/drone.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ steps:
9090
environment:
9191
DRYCC_REGISTRY:
9292
from_secret: drycc_registry
93+
when:
94+
event:
95+
- push
96+
- tag
9397

9498
- name: publish
9599
image: plugins/manifest
@@ -102,7 +106,6 @@ steps:
102106
environment:
103107
DEV_REGISTRY:
104108
from_secret: dev_registry
105-
106109
when:
107110
event:
108111
- push

.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)