Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6347bf

Browse files
committed
chore: update
1 parent 28fe23e commit d6347bf

File tree

1 file changed

+44
-14
lines changed

1 file changed

+44
-14
lines changed

.drone.yml

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,46 @@
1+
---
2+
kind: pipeline
3+
name: linux-amd64
14

2-
clone:
3-
git:
4-
image: plugins/git
5-
depth: 50
6-
tags: true
5+
platform:
6+
os: linux
7+
arch: amd64
78

8-
pipeline:
9-
docker:
10-
image: plugins/docker
11-
secrets: [ docker_username, docker_password ]
12-
default_tags: true
13-
repo: ${DRONE_REPO}
14-
when:
15-
event: [ push, tag ]
16-
local: false
9+
steps:
10+
- name: dryrun
11+
pull: always
12+
image: plugins/docker:linux-amd64
13+
settings:
14+
cache_from: appleboy/nginx-image-resizer
15+
dockerfile: Dockerfile
16+
dry_run: true
17+
repo: appleboy/nginx-image-resizer
18+
tags: linux-amd64
19+
when:
20+
event:
21+
- pull_request
22+
23+
- name: publish
24+
pull: always
25+
image: plugins/docker:linux-amd64
26+
settings:
27+
auto_tag: true
28+
auto_tag_suffix: linux-amd64
29+
cache_from: appleboy/nginx-image-resizer
30+
dockerfile: Dockerfile
31+
daemon_off: false
32+
password:
33+
from_secret: docker_password
34+
repo: appleboy/nginx-image-resizer
35+
username:
36+
from_secret: docker_username
37+
when:
38+
event:
39+
exclude:
40+
- pull_request
41+
42+
trigger:
43+
ref:
44+
- refs/heads/master
45+
- refs/pull/**
46+
- refs/tags/**

0 commit comments

Comments
 (0)