Compare commits
No commits in common. "aeeeffe5e9d5a62ab3eaae84e45d47e183d850f4" and "1bbc108cdd52c336681e701358da2fc7122a6299" have entirely different histories.
aeeeffe5e9
...
1bbc108cdd
3 changed files with 39 additions and 47 deletions
|
|
@ -8,6 +8,3 @@ trim_trailing_whitespace = true
|
|||
insert_final_newline = true
|
||||
end_of_line = lf
|
||||
max_line_length = null
|
||||
|
||||
[*.{yaml,yml}]
|
||||
indent_size = 2
|
||||
|
|
|
|||
|
|
@ -2,43 +2,45 @@
|
|||
# - 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
|
||||
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
|
||||
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-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
|
||||
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
|
||||
|
|
|
|||
11
Dockerfile
11
Dockerfile
|
|
@ -1,18 +1,11 @@
|
|||
FROM node:22-bookworm-slim
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PNPM_HOME="/root/.local/share/pnpm"
|
||||
ENV PATH="${PATH}:${PNPM_HOME}"
|
||||
|
||||
# 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 apk add -U --no-cache ca-certificates
|
||||
RUN npm install --global pnpm
|
||||
|
||||
RUN pnpm install --global --dangerously-allow-all-builds wrangler@latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue