Skip to content

Commit 85df2e8

Browse files
committed
chore(stacks): use registry.drycc.cc replace docker.io
1 parent 174362e commit 85df2e8

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.drone.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ platform:
99
steps:
1010
- name: check
1111
commands:
12+
- mkdir -p $HOMEPATH/.docker; echo $IMAGE_PULL_SECRETS > $HOMEPATH/.docker/config.json
1213
- docker run --rm
1314
-e GITHUB_TOKEN=$GITHUB_TOKEN
1415
-v "$(pwd):$(pwd)"
@@ -18,12 +19,19 @@ steps:
1819
environment:
1920
GITHUB_TOKEN:
2021
from_secret: github_token
22+
DEV_REGISTRY:
23+
from_secret: dev_registry
24+
DRYCC_REGISTRY:
25+
from_secret: drycc_registry
26+
IMAGE_PULL_SECRETS:
27+
from_secret: container_pull_secrets
2128
when:
2229
event:
2330
- cron
2431

2532
- name: publish
2633
commands:
34+
- mkdir -p $HOMEPATH/.docker; echo $IMAGE_PULL_SECRETS > $HOMEPATH/.docker/config.json
2735
- CODENAME=bullseye ./build.sh all ${DRONE_TAG}
2836
environment:
2937
OSS_ENDPOINT:
@@ -32,6 +40,8 @@ steps:
3240
from_secret: oss_access_key_id
3341
OSS_ACCESS_KEY_SECRET:
3442
from_secret: oss_access_key_secret
43+
IMAGE_PULL_SECRETS:
44+
from_secret: container_pull_secrets
3545
when:
3646
event:
3747
- tag
@@ -48,6 +58,7 @@ platform:
4858
steps:
4959
- name: publish
5060
commands:
61+
- mkdir -p $HOMEPATH/.docker; echo $IMAGE_PULL_SECRETS > $HOMEPATH/.docker/config.json
5162
- CODENAME=bullseye ./build.sh all ${DRONE_TAG}
5263
environment:
5364
OSS_ENDPOINT:
@@ -56,6 +67,8 @@ steps:
5667
from_secret: oss_access_key_id
5768
OSS_ACCESS_KEY_SECRET:
5869
from_secret: oss_access_key_secret
70+
IMAGE_PULL_SECRETS:
71+
from_secret: container_pull_secrets
5972
when:
6073
event:
6174
- tag

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
set -u
44
# Build a base image
5-
DRYCC_REGISTRY=${DRYCC_REGISTRY:-${DEV_REGISTRY:-docker.io}}
5+
DRYCC_REGISTRY=${DRYCC_REGISTRY:-${DEV_REGISTRY:-registry.drycc.cc}}
66

77
# make sure we are in this dir
88
CURRENT_DIR=$(cd "$(dirname "$0")"; pwd)

0 commit comments

Comments
 (0)