Upgrade to Bun 1.0
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Julien Valverdé
2023-09-10 01:16:31 +02:00
parent f5e6751136
commit 93264ad1e2
5 changed files with 25 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
local bun_image = "oven/bun:0.8.1";
local bun_image = "oven/bun:1.0";
local fetch_step = {
@@ -7,12 +7,12 @@ local fetch_step = {
commands: ["git fetch --tags"],
};
local install_run_step = {
name: "install-run",
local generate_docker_tags_step = {
name: "generate-docker-tags",
image: bun_image,
commands: [
"apt update -y && apt full-upgrade -y && apt install -y --reinstall ca-certificates && apt install -y --no-install-recommends git",
"bun install --production --frozen-lockfile --no-cache",
"apt-get update && apt-get install -y --reinstall --no-install-recommends ca-certificates && apt-get install -y --no-install-recommends git",
"bun install --frozen-lockfile --no-cache --production",
"bun start .",
],
};
@@ -50,7 +50,7 @@ local build_docker_step(publish) = {
steps: [
fetch_step,
install_run_step,
generate_docker_tags_step,
build_docker_step(false),
],
},
@@ -72,7 +72,7 @@ local build_docker_step(publish) = {
steps: [
fetch_step,
install_run_step,
generate_docker_tags_step,
build_docker_step(true),
],
},