This commit is contained in:
parent
643c75caa4
commit
466711e728
17
.drone.yml
17
.drone.yml
@ -4,15 +4,30 @@ type: docker
|
|||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker-arm
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
target: arm
|
||||||
username:
|
username:
|
||||||
from_secret: gitea_packpub_username
|
from_secret: gitea_packpub_username
|
||||||
password:
|
password:
|
||||||
from_secret: gitea_packpub_password
|
from_secret: gitea_packpub_password
|
||||||
registry: git.simponic.xyz
|
registry: git.simponic.xyz
|
||||||
repo: git.simponic.xyz/simponic/uptime
|
repo: git.simponic.xyz/simponic/uptime
|
||||||
|
tags:
|
||||||
|
- arm
|
||||||
|
- name: docker-amd64
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
target: eightysix
|
||||||
|
username:
|
||||||
|
from_secret: gitea_packpub_username
|
||||||
|
password:
|
||||||
|
from_secret: gitea_packpub_password
|
||||||
|
registry: git.simponic.xyz
|
||||||
|
repo: git.simponic.xyz/simponic/uptime
|
||||||
|
tags:
|
||||||
|
- eightysix
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
14
Dockerfile
14
Dockerfile
@ -1,6 +1,16 @@
|
|||||||
FROM oven/bun
|
FROM oven/bun AS build
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
RUN bun install
|
RUN bun install
|
||||||
RUN bun test
|
RUN bun test
|
||||||
CMD bun run /app/index.ts
|
RUN bun build /app/index.js --target=bun
|
||||||
|
|
||||||
|
FROM --platform=linux/arm64 bun:1 AS arm
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/index.js .
|
||||||
|
CMD [ "bun", "run", "index.js" ]
|
||||||
|
|
||||||
|
FROM --platform=linux/amd64 bun:1 AS eightysix
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/index.js .
|
||||||
|
CMD [ "bun", "run", "index.js" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user