diff --git a/.editorconfig b/.editorconfig index 9571781..8c853dc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,6 @@ trim_trailing_whitespace = true insert_final_newline = true end_of_line = lf max_line_length = null + +[*.{yaml,yml}] +indent_size = 2 diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml index c2eabad..7666b88 100644 --- a/.woodpecker/release.yaml +++ b/.woodpecker/release.yaml @@ -2,45 +2,43 @@ # - test when: - # - event: [tag] - - event: push - branch: ${CI_DEFAULT_BRANCH} + # - event: [tag] + - event: push + branch: ${CI_DEFAULT_BRANCH} variables: - - &buildx-plugin "woodpeckerci/plugin-docker-buildx:6.0.2" - - &repo "registry.mareshq.com/woodpecker-plugins/wrangler-deploy" - - &platforms "linux/arm64/v8,linux/amd64" + - &buildx-plugin "woodpeckerci/plugin-docker-buildx:6.0.2" + - &repo "registry.mareshq.com/woodpecker-plugins/wrangler-deploy" + - &platforms "linux/arm64/v8,linux/amd64" steps: - publish-next: - image: *buildx-plugin - settings: - repo: *repo - platforms: *platforms - tag: next - output: type=oci - logins: - - registry: https://registry.mareshq.com - username: - from_secret: registry_username - password: - from_secret: registry_password - when: - branch: main - event: push + publish-next: + image: *buildx-plugin + settings: + repo: *repo + platforms: *platforms + tag: next + logins: + - registry: https://registry.mareshq.com + username: + from_secret: registry_username + password: + from_secret: registry_password + when: + branch: main + event: push - publish-tag: - image: *buildx-plugin - settings: - repo: *repo - platforms: *platforms - tag: [latest, "${CI_COMMIT_TAG}"] - output: type=oci - logins: - - registry: https://registry.mareshq.com - username: - from_secret: registry_username - password: - from_secret: registry_password - when: - event: tag + publish-tag: + image: *buildx-plugin + settings: + repo: *repo + platforms: *platforms + tag: [latest, "${CI_COMMIT_TAG}"] + logins: + - registry: https://registry.mareshq.com + username: + from_secret: registry_username + password: + from_secret: registry_password + when: + event: tag diff --git a/Dockerfile b/Dockerfile index d9824ab..d93e447 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,18 @@ -FROM node:22-alpine +FROM node:22-bookworm-slim WORKDIR /app ENV PNPM_HOME="/root/.local/share/pnpm" 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 pnpm install --global --dangerously-allow-all-builds wrangler@latest