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