File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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:
111124depends_on :
112125- linux-amd64
113126- linux-arm64
114-
Original file line number Diff line number Diff line change 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 }}
33tags:
44{{#each build.tags }}
77{{/if }}
88manifests:
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
Original file line number Diff line number Diff line change 11VERSION ?= $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
22DEV_REGISTRY ?= docker.io
3- IMAGE_PREFIX ?= drycc
3+ IMAGE_PREFIX ?= jianxiaoguo
44IMAGE := ${DEV_REGISTRY}/${IMAGE_PREFIX}/go-dev:${VERSION}
55PLATFORM ?= linux/amd64,linux/arm64
66
You can’t perform that action at this time.
0 commit comments