From 24f9aff11df27320c1001f7231eaf3d5058b8360 Mon Sep 17 00:00:00 2001 From: renovate Date: Fri, 26 Apr 2024 18:01:07 +0000 Subject: [PATCH 1/3] Update node Docker tag to v22 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4b98454..661d2d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:21 AS builder +FROM node:22 AS builder COPY . /src WORKDIR /src -- 2.45.2 From 0f954d30a94984a837f1e9bc0f38278ce525da77 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 8 Jul 2024 19:13:48 -0400 Subject: [PATCH 2/3] fix import syntax --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6fa05af..d945d19 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import { load } from "cheerio"; import { readFile, writeFile } from "fs"; import process from "child_process"; -import stores from "./stores.json" assert { type: "json" }; +import stores from "./stores.json" with { type: "json" }; function GetRecentChanges() { const res = process -- 2.45.2 From 48c4e817d7059f076762e782e99270e60fd9811f Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 8 Jul 2024 19:17:03 -0400 Subject: [PATCH 3/3] add build step for branches --- .woodpecker.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4bcb073..8ea6a44 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,6 +6,17 @@ depth: 15 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: image: docker commands: @@ -17,6 +28,7 @@ steps: - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"' secrets: [docker_username, docker_password, compose_token] when: - branch: "master" + branch: + include: ["master", "main"] volumes: - /var/run/docker.sock:/var/run/docker.sock -- 2.45.2