CI build pipelines
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2023-12-29 00:55:59 +01:00
parent 13c2113aa2
commit 436e26eb19
2 changed files with 51 additions and 41 deletions

View File

@@ -19,9 +19,20 @@ local lint_step = {
commands: ["bun lint:tsc"],
};
local generate_docker_tags_step = {
name: "generate-docker-tags",
image: "git.jvalver.de/thilawyn/drone-better-docker-autotag",
local build_step = {
name: "build",
image: bun_image,
commands: ["bun run build"],
};
local publish_step = {
name: "publish",
image: "plugins/npm",
settings: {
registry: "https://git.jvalver.de/api/packages/jvalverde/npm",
token: { from_secret: "npm_token" },
},
};
@@ -48,46 +59,45 @@ local generate_docker_tags_step = {
],
},
// Build the server and legacy API docker images without publishing them for pull requests
// {
// kind: "pipeline",
// type: "docker",
// name: "build-docker",
// Build the package without publishing for pull requests
{
kind: "pipeline",
type: "docker",
name: "build",
// trigger: {
// ref: {
// include: ["refs/pull/**"]
// }
// },
trigger: {
ref: {
include: ["refs/pull/**"]
}
},
// steps: [
// fetch_step,
// generate_docker_tags_step,
// build_website_docker_step(false),
// build_legacy_api_docker_step(false),
// ],
// },
steps: [
install_step,
lint_step,
build_step,
],
},
// Build the server and legacy API docker images and publish them for master and tags
// {
// kind: "pipeline",
// type: "docker",
// name: "build-publish-docker",
// Build and publish the package for master and tags
{
kind: "pipeline",
type: "docker",
name: "build-publish",
// trigger: {
// ref: {
// include: [
// "refs/heads/master",
// "refs/tags/**",
// ]
// }
// },
trigger: {
ref: {
include: [
"refs/heads/master",
"refs/tags/**",
]
}
},
// steps: [
// fetch_step,
// generate_docker_tags_step,
// build_website_docker_step(true),
// build_legacy_api_docker_step(true),
// ],
// },
steps: [
install_step,
lint_step,
build_step,
publish_step,
],
},
]

View File

@@ -1,6 +1,6 @@
{
"name": "thilatrait",
"version": "20231208.0.0",
"version": "20231229.0.0",
"type": "module",
"exports": {
".": {