-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanifest.yml
More file actions
41 lines (38 loc) · 874 Bytes
/
manifest.yml
File metadata and controls
41 lines (38 loc) · 874 Bytes
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
labels:
type: exec
platform: linux/amd64
steps:
- name: generate-manifest
image: bash
commands:
- sed -i "s/{{project}}/$${CI_REPO_NAME}/g" .woodpecker/manifest.tmpl
- sed -i "s/registry.drycc.cc/$${DRYCC_REGISTRY}/g" .woodpecker/manifest.tmpl
environment:
DRYCC_REGISTRY:
from_secret: drycc_registry
when:
event:
- tag
- push
- name: publish-manifest
image: bash
commands:
- podman run --rm
-e PLUGIN_SPEC=.woodpecker/manifest.tmpl
-e PLUGIN_USERNAME=$CONTAINER_USERNAME
-e PLUGIN_PASSWORD=$CONTAINER_PASSWORD
-e DRONE_TAG=$CI_COMMIT_TAG
-v $(pwd):$(pwd)
-w $(pwd)
docker.io/plugins/manifest
environment:
CONTAINER_USERNAME:
from_secret: container_username
CONTAINER_PASSWORD:
from_secret: container_password
when:
event:
- tag
- push
depends_on:
- build-linux