Compare commits
4 commits
1bbc108cdd
...
aeeeffe5e9
| Author | SHA1 | Date | |
|---|---|---|---|
| aeeeffe5e9 | |||
| 88bff88d89 | |||
| 2ee83a3965 | |||
| fc5fc4d035 |
3 changed files with 47 additions and 39 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
|
||||||
11
Dockerfile
11
Dockerfile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue