-
Notifications
You must be signed in to change notification settings - Fork 0
/
.woodpecker.yml
43 lines (36 loc) · 935 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
when:
- event: push
variables:
- &repo "misotolar/woodpecker-docker-update"
- &desc "Woodpecker plugin for update Docker Hub description and overview"
- &auth
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
clone:
- name: clone
image: alpine/git
pull: true
commands:
- git init --quiet
- git remote add origin ${CI_REPO_CLONE_URL}
- git fetch --quiet --depth=1 origin "+refs/heads/${CI_COMMIT_BRANCH}:"
- git checkout ${CI_COMMIT_SHA} -b ${CI_COMMIT_BRANCH}
steps:
- name: publish
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: *repo
platforms: linux/amd64
tag: ['${CI_COMMIT_SHA:0:8}', latest]
<<: *auth
- name: update
image: misotolar/woodpecker-docker-update
pull: true
settings:
repo: *repo
desc: *desc
readme: README.md
<<: *auth