First version: 20231229.0.0 (#2)
All checks were successful
continuous-integration/drone/push Build is passing

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: https://git.jvalver.de/Thilawyn/thilatrait/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
Julien Valverdé
2023-12-29 01:07:06 +01:00
parent c6de7004d2
commit c794c899e5
12 changed files with 602 additions and 227 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,
],
},
]