This commit is contained in:
parent
38e2a8cec5
commit
4f88615c31
3 changed files with 6 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: git.mzhang.io/michael/blog-docker-builder:ksi5l9c786i4x6sq2crsjqlmcfidvvza
|
image: git.mzhang.io/michael/blog-docker-builder:n409yvghr9s92rshjfca0niqsq5vnpl7
|
||||||
environment:
|
environment:
|
||||||
- ASTRO_TELEMETRY_DISABLED=1
|
- ASTRO_TELEMETRY_DISABLED=1
|
||||||
commands:
|
commands:
|
||||||
- mkdir /tmp
|
- mkdir /tmp
|
||||||
|
- rm -rf node_modules
|
||||||
- npm i -g pnpm@9.4.0
|
- npm i -g pnpm@9.4.0
|
||||||
- npx pnpm install --frozen-lockfile
|
- npx pnpm install --frozen-lockfile
|
||||||
- npx pnpm run build
|
- npx pnpm run build
|
||||||
|
@ -12,7 +13,7 @@ steps:
|
||||||
- event: push
|
- event: push
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: git.mzhang.io/michael/blog-docker-builder:ksi5l9c786i4x6sq2crsjqlmcfidvvza
|
image: git.mzhang.io/michael/blog-docker-builder:n409yvghr9s92rshjfca0niqsq5vnpl7
|
||||||
commands:
|
commands:
|
||||||
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
|
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
|
||||||
- chmod 600 SSH_SECRET_KEY
|
- chmod 600 SSH_SECRET_KEY
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
, openssh
|
, openssh
|
||||||
, bash
|
, bash
|
||||||
, coreutils
|
, coreutils
|
||||||
, bun
|
|
||||||
, nodejs_20
|
, nodejs_20
|
||||||
|
, gnused
|
||||||
}:
|
}:
|
||||||
|
|
||||||
dockerTools.buildLayeredImage {
|
dockerTools.buildLayeredImage {
|
||||||
|
@ -20,8 +20,8 @@ dockerTools.buildLayeredImage {
|
||||||
openssh
|
openssh
|
||||||
bash
|
bash
|
||||||
coreutils
|
coreutils
|
||||||
bun
|
|
||||||
nodejs_20
|
nodejs_20
|
||||||
|
gnused
|
||||||
usrBinEnv
|
usrBinEnv
|
||||||
caCertificates
|
caCertificates
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,4 +9,4 @@ docker image tag "$IMAGE_NAME" "$REMOTE_IMAGE_NAME"
|
||||||
docker push "$REMOTE_IMAGE_NAME"
|
docker push "$REMOTE_IMAGE_NAME"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
sed -i -E "s~(.*image: )blog-docker-builder:?.*~\1$REMOTE_IMAGE_NAME~" .woodpecker.yml
|
sed -i -E "s~(.*image: ).*blog-docker-builder:?.*~\1$REMOTE_IMAGE_NAME~" .woodpecker.yml
|
||||||
|
|
Loading…
Reference in a new issue