Update builder
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Michael Zhang 2024-06-26 19:47:02 -05:00
parent 38e2a8cec5
commit 4f88615c31
3 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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
];

View file

@ -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