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"], commands: ["bun lint:tsc"],
}; };
local generate_docker_tags_step = { local build_step = {
name: "generate-docker-tags", name: "build",
image: "git.jvalver.de/thilawyn/drone-better-docker-autotag", 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 // Build the package without publishing for pull requests
// { {
// kind: "pipeline", kind: "pipeline",
// type: "docker", type: "docker",
// name: "build-docker", name: "build",
// trigger: { trigger: {
// ref: { ref: {
// include: ["refs/pull/**"] include: ["refs/pull/**"]
// } }
// }, },
// steps: [ steps: [
// fetch_step, install_step,
// generate_docker_tags_step, lint_step,
// build_website_docker_step(false), build_step,
// build_legacy_api_docker_step(false), ],
// ], },
// },
// Build the server and legacy API docker images and publish them for master and tags // Build and publish the package for master and tags
// { {
// kind: "pipeline", kind: "pipeline",
// type: "docker", type: "docker",
// name: "build-publish-docker", name: "build-publish",
// trigger: { trigger: {
// ref: { ref: {
// include: [ include: [
// "refs/heads/master", "refs/heads/master",
// "refs/tags/**", "refs/tags/**",
// ] ]
// } }
// }, },
// steps: [ steps: [
// fetch_step, install_step,
// generate_docker_tags_step, lint_step,
// build_website_docker_step(true), build_step,
// build_legacy_api_docker_step(true), publish_step,
// ], ],
// }, },
] ]

View File

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