Compare commits

..

4 Commits

Author SHA1 Message Date
a91bb9dc4f Merge pull request 'Update node Docker tag to v22' (#10) from renovate/node-22.x into master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #10
2024-07-08 23:17:55 +00:00
48c4e817d7 add build step for branches
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-07-08 19:17:03 -04:00
0f954d30a9 fix import syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-07-08 19:14:46 -04:00
24f9aff11d Update node Docker tag to v22 2024-07-08 19:14:46 -04:00
3 changed files with 15 additions and 3 deletions

View File

@ -6,6 +6,17 @@
depth: 15 depth: 15
steps: steps:
test:
image: docker
commands:
- apk add curl
- docker build .
when:
branch:
exclude: ["master", "main"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
build: build:
image: docker image: docker
commands: commands:
@ -17,6 +28,7 @@ steps:
- 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"' - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
secrets: [docker_username, docker_password, compose_token] secrets: [docker_username, docker_password, compose_token]
when: when:
branch: "master" branch:
include: ["master", "main"]
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@ -1,4 +1,4 @@
FROM node:21 AS builder FROM node:22 AS builder
COPY . /src COPY . /src
WORKDIR /src WORKDIR /src

View File

@ -1,7 +1,7 @@
import { load } from "cheerio"; import { load } from "cheerio";
import { readFile, writeFile } from "fs"; import { readFile, writeFile } from "fs";
import process from "child_process"; import process from "child_process";
import stores from "./stores.json" assert { type: "json" }; import stores from "./stores.json" with { type: "json" };
function GetRecentChanges() { function GetRecentChanges() {
const res = process const res = process