Skip to content

Commit ca87307

Browse files
committed
chore(pack-images): use woodpecker replace drone
1 parent 4b752dd commit ca87307

14 files changed

Lines changed: 233 additions & 293 deletions

.drone/drone.yml

Lines changed: 0 additions & 253 deletions
This file was deleted.

.drone/manifest-build.tmpl

Lines changed: 0 additions & 13 deletions
This file was deleted.

.drone/manifest-buildpacks.tmpl

Lines changed: 0 additions & 13 deletions
This file was deleted.

.drone/manifest-run.tmpl

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
matrix:
2+
platform:
3+
- linux/amd64
4+
- linux/arm64
5+
6+
platform: ${platform}
7+
8+
labels:
9+
type: exec
10+
11+
pipeline:
12+
- name: publish-linux
13+
image: bash
14+
commands:
15+
- echo $CONTAINER_PASSWORD | docker login $DRYCC_REGISTRY --username $CONTAINER_USERNAME --password-stdin > /dev/null 2>&1
16+
- docker run --rm
17+
-v "/usr/local/bin:/tmp/bin"
18+
--env CODENAME=$${CODENAME}
19+
--env DRYCC_REGISTRY=$DRYCC_REGISTRY
20+
--entrypoint init-stack
21+
$DRYCC_REGISTRY/drycc/imagebuilder:canary
22+
bash -c "cp /opt/drycc/pack/bin/pack /tmp/bin"
23+
- sed -i "s/registry.drycc.cc/$${DRYCC_REGISTRY}/g" builder.toml
24+
- sed -i "s/{{CODENAME}}/$${CODENAME}/g" builder.toml
25+
- export PACK_HOME=$CI_WORKSPACE
26+
- make publish-buildpack
27+
environment:
28+
CODENAME: bullseye
29+
secrets:
30+
- dev_registry
31+
- drycc_registry
32+
- container_username
33+
- container_password
34+
when:
35+
event:
36+
- push
37+
- tag
38+
39+
depends_on:
40+
- test-linux
41+
- manifest-pack

.woodpecker/build-linux-pack.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
matrix:
2+
platform:
3+
- linux/amd64
4+
- linux/arm64
5+
6+
platform: ${platform}
7+
8+
labels:
9+
type: exec
10+
11+
pipeline:
12+
- name: publish-linux
13+
image: bash
14+
commands:
15+
- echo $CONTAINER_PASSWORD | docker login $DRYCC_REGISTRY --username $CONTAINER_USERNAME --password-stdin > /dev/null 2>&1
16+
- CODENAME=bullseye make publish-pack
17+
secrets:
18+
- dev_registry
19+
- drycc_registry
20+
- container_username
21+
- container_password
22+
when:
23+
event:
24+
- push
25+
- tag
26+
27+
depends_on:
28+
- test-linux

.woodpecker/manifest-build.tmpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image: registry.drycc.cc/drycc/pack:{{codename}}-build
2+
manifests:
3+
-
4+
image: registry.drycc.cc/drycc/pack:{{codename}}-linux-amd64-build
5+
platform:
6+
architecture: amd64
7+
os: linux
8+
-
9+
image: registry.drycc.cc/drycc/pack:{{codename}}-linux-arm64-build
10+
platform:
11+
architecture: arm64
12+
os: linux
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image: registry.drycc.cc/drycc/buildpacks:{{codename}}
2+
manifests:
3+
-
4+
image: registry.drycc.cc/drycc/buildpacks:{{codename}}-linux-amd64
5+
platform:
6+
architecture: amd64
7+
os: linux
8+
-
9+
image: registry.drycc.cc/drycc/buildpacks:{{codename}}-linux-arm64
10+
platform:
11+
architecture: arm64
12+
os: linux

0 commit comments

Comments
 (0)