forked from bitwiseops/obsidian-kobo-highlights-import
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade node in ci to v20 (#246)
- Loading branch information
Showing
4 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,4 @@ | |
"engines": { | ||
"node": ">=18.0.0 <19.0.0" | ||
} | ||
} | ||
} |