pudate
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Michael Zhang 2024-06-11 13:54:47 -04:00
parent dfbdf2d4ff
commit 435ec21f6e
5 changed files with 34 additions and 15 deletions

View file

@ -1,19 +1,15 @@
steps: steps:
build: build:
image: node:20 # image: node:20
image: oven/bun:1
commands: commands:
- npm install -g pnpm # - npm install -g pnpm
# - cd /tmp # - pnpm install
# - rm -rf astro # - pnpm run build
# - git clone https://git.mzhang.io/michael/astro --depth 1 - bun install --frozen-lockfile
# - cd astro - bun run build
# - pnpm install when:
# - pnpm run build - event: push
# - cd /woodpecker/src/git.mzhang.io/michael/blog
- pnpm install
# - pnpm link /tmp/astro/packages/astro
# - pnpm link /tmp/astro/packages/markdown/remark
- pnpm run build
deploy: deploy:
image: alpine image: alpine
@ -26,4 +22,5 @@ steps:
- rsync -azrP -e "ssh -i SSH_SECRET_KEY" dist/ blogDeploy@mzhang.io:/home/blogDeploy/public - rsync -azrP -e "ssh -i SSH_SECRET_KEY" dist/ blogDeploy@mzhang.io:/home/blogDeploy/public
secrets: [SSH_SECRET_KEY] secrets: [SSH_SECRET_KEY]
when: when:
branch: master - branch: master
event: push

BIN
bun.lockb Executable file

Binary file not shown.

12
docker/builder.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> { }
}:
pkgs.dockerTools.buildImage {
name = "hello-docker";
config = {
Cmd = [ "${pkgs.hello}/bin/hello" ];
Env = [
"PATH=${pkgs.agda.withPackages (p: with p; { standard-library })}" ];
};
}

10
flake.nix Normal file
View file

@ -0,0 +1,10 @@
{
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
flakePkgs = { builder = pkgs.callPackage ./docker/builder.nix { }; };
in
{
packages = flake-utils.lib.flattenTree flakePkgs;
});
}

View file

@ -47,7 +47,7 @@
"prettier-plugin-astro": "^0.12.0", "prettier-plugin-astro": "^0.12.0",
"rehype-slug": "^6.0.0", "rehype-slug": "^6.0.0",
"sass": "^1.66.1", "sass": "^1.66.1",
"sharp": "^0.32.6", "sharp": "^0.33.4",
"shiki": "^0.14.5", "shiki": "^0.14.5",
"unified": "^11.0.2", "unified": "^11.0.2",
"unist-util-visit": "^5.0.0" "unist-util-visit": "^5.0.0"