Skip to content

Commit

Permalink
chore: upgrade node in ci to v20 (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin authored Dec 5, 2023
1 parent 66b2dd6 commit b9a6e7f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local jsonnet = import '.drone-templates/jsonnet.libsonnet';
local releasePlease = import '.drone-templates/release-please.libsonnet';
local renovate = import '.drone-templates/renovate.libsonnet';

local nodeImage = 'node:18-buster';
local nodeImage = 'node:20';

local koboPipeline = [
common.defaultPushTrigger + common.platform + {
Expand Down
10 changes: 5 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
"commands": [
"npm install"
],
"image": "node:18-buster",
"image": "node:20",
"name": "install",
"volumes": [
{
Expand All @@ -516,7 +516,7 @@
"depends_on": [
"install"
],
"image": "node:18-buster",
"image": "node:20",
"name": "lint",
"volumes": [
{
Expand All @@ -533,7 +533,7 @@
"install",
"copy kobo database"
],
"image": "node:18-buster",
"image": "node:20",
"name": "test",
"volumes": [
{
Expand All @@ -549,7 +549,7 @@
"depends_on": [
"install"
],
"image": "node:18-buster",
"image": "node:20",
"name": "build",
"volumes": [
{
Expand Down Expand Up @@ -653,6 +653,6 @@
}
---
kind: signature
hmac: 65c33c15d37a05290f8cd935aae043afaeb0ff02539a7d0150d06ed3b8f0c6f2
hmac: 5a5a2892990d43ba5d860e4377445d666e9c23a6c5d2343fbc0dba9f7d1190bf

...
34 changes: 34 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
VERSION 0.7
FROM debian:12
WORKDIR /workspace

RUN apt update && apt install -y wget jsonnet

dronecli:
RUN wget https://github.com/harness/drone-cli/releases/latest/download/drone_linux_arm64.tar.gz
RUN tar -xvf drone_linux_arm64.tar.gz
RUN mv drone /usr/local/bin/drone
SAVE ARTIFACT /usr/local/bin/drone

generate-droneci-spec:
FROM +dronecli

COPY .drone-templates .drone-templates
COPY .drone.jsonnet .

RUN jsonnetfmt -i .drone.jsonnet && drone jsonnet --stream
SAVE ARTIFACT .drone.yml AS LOCAL .drone.yml

lint-drone-spec:
FROM +generate-droneci-spec

RUN drone lint --trusted

sign-drone-spec:
FROM +dronecli

ARG DRONE_SERVER=https://drone.ogkevin.nl
COPY +generate-droneci-spec/.drone.yml .

RUN --secret DRONE_TOKEN drone sign OGKevin/obsidian-kobo-highlights-import --save
SAVE ARTIFACT .drone.yml AS LOCAL .drone.yml
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"engines": {
"node": ">=18.0.0 <19.0.0"
}
}
}

0 comments on commit b9a6e7f

Please sign in to comment.