Compare commits

...

4 commits

Author SHA1 Message Date
aeeeffe5e9
style(release.yaml): apply .editorconfig formatting (yaml indent size)
All checks were successful
ci/woodpecker/push/release Pipeline was successful
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 14:00:39 +02:00
88bff88d89
refactor(Dockerfile): change base image from alpine to debian (bookworm) slim
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 14:00:06 +02:00
2ee83a3965
chore(.editorconfig): yaml files indent size = 2
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 13:59:45 +02:00
fc5fc4d035
ci(release): remove output type=oci
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-03 18:32:58 +02:00
3 changed files with 47 additions and 39 deletions

View file

@ -8,3 +8,6 @@ trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
end_of_line = lf end_of_line = lf
max_line_length = null max_line_length = null
[*.{yaml,yml}]
indent_size = 2

View file

@ -2,45 +2,43 @@
# - test # - test
when: when:
# - event: [tag] # - event: [tag]
- event: push - event: push
branch: ${CI_DEFAULT_BRANCH} branch: ${CI_DEFAULT_BRANCH}
variables: variables:
- &buildx-plugin "woodpeckerci/plugin-docker-buildx:6.0.2" - &buildx-plugin "woodpeckerci/plugin-docker-buildx:6.0.2"
- &repo "registry.mareshq.com/woodpecker-plugins/wrangler-deploy" - &repo "registry.mareshq.com/woodpecker-plugins/wrangler-deploy"
- &platforms "linux/arm64/v8,linux/amd64" - &platforms "linux/arm64/v8,linux/amd64"
steps: steps:
publish-next: publish-next:
image: *buildx-plugin image: *buildx-plugin
settings: settings:
repo: *repo repo: *repo
platforms: *platforms platforms: *platforms
tag: next tag: next
output: type=oci logins:
logins: - registry: https://registry.mareshq.com
- registry: https://registry.mareshq.com username:
username: from_secret: registry_username
from_secret: registry_username password:
password: from_secret: registry_password
from_secret: registry_password when:
when: branch: main
branch: main event: push
event: push
publish-tag: publish-tag:
image: *buildx-plugin image: *buildx-plugin
settings: settings:
repo: *repo repo: *repo
platforms: *platforms platforms: *platforms
tag: [latest, "${CI_COMMIT_TAG}"] tag: [latest, "${CI_COMMIT_TAG}"]
output: type=oci logins:
logins: - registry: https://registry.mareshq.com
- registry: https://registry.mareshq.com username:
username: from_secret: registry_username
from_secret: registry_username password:
password: from_secret: registry_password
from_secret: registry_password when:
when: event: tag
event: tag

View file

@ -1,11 +1,18 @@
FROM node:22-alpine FROM node:22-bookworm-slim
WORKDIR /app WORKDIR /app
ENV PNPM_HOME="/root/.local/share/pnpm" ENV PNPM_HOME="/root/.local/share/pnpm"
ENV PATH="${PATH}:${PNPM_HOME}" ENV PATH="${PATH}:${PNPM_HOME}"
RUN apk add -U --no-cache ca-certificates # RUN apk add -U --no-cache ca-certificates libc++
# RUN --mount=type=cache,target=/var/cache/apt \
# --mount=type=cache,target=/var/lib/apt \
# apt-get update && apt-get install -y ca-certificates
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
RUN npm install --global pnpm RUN npm install --global pnpm
RUN pnpm install --global --dangerously-allow-all-builds wrangler@latest RUN pnpm install --global --dangerously-allow-all-builds wrangler@latest