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
|
||||
end_of_line = lf
|
||||
max_line_length = null
|
||||
|
||||
[*.{yaml,yml}]
|
||||
indent_size = 2
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
11
Dockerfile
11
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue