diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-12-15 00:52:32 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-12-15 00:54:50 -0800 |
commit | 2e450aea9729feb6df9ce73094b16342e87ece19 (patch) | |
tree | 1b6d6ac8266f080f9f1ad9d511cba0240c433299 | |
parent | 643c75caa40a1cdfbd93e2df3ddab3ae901ae9b1 (diff) | |
download | uptime-2e450aea9729feb6df9ce73094b16342e87ece19.tar.gz uptime-2e450aea9729feb6df9ce73094b16342e87ece19.zip |
arm?
-rw-r--r-- | .drone.yml | 17 | ||||
-rw-r--r-- | Dockerfile | 14 |
2 files changed, 28 insertions, 3 deletions
@@ -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-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: branch: @@ -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.ts --target=bun > /app/index.js + +FROM --platform=linux/arm64 oven/bun AS arm +WORKDIR /app +COPY --from=build /app/index.js . +CMD [ "bun", "run", "index.js" ] + +FROM --platform=linux/amd64 oven/bun AS eightysix +WORKDIR /app +COPY --from=build /app/index.js . +CMD [ "bun", "run", "index.js" ] |