arm?
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Elizabeth Hunt 2024-12-15 00:52:32 -08:00
parent 643c75caa4
commit 7b196ef9cd
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE
2 changed files with 28 additions and 3 deletions

View File

@ -4,15 +4,30 @@ type: docker
name: deploy
steps:
- name: docker
- name: docker-arm
image: plugins/docker
settings:
target: arm
username:
from_secret: gitea_packpub_username
password:
from_secret: gitea_packpub_password
registry: git.simponic.xyz
repo: git.simponic.xyz/simponic/uptime
tags:
- arm
- name: docker-arm
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:
branch:

View File

@ -1,6 +1,16 @@
FROM oven/bun
FROM oven/bun AS build
COPY . /app
WORKDIR /app/
RUN bun install
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" ]