Skip to content

Commit

Permalink
Use binary for specific target architecture and os
Browse files Browse the repository at this point in the history
  • Loading branch information
alinetskyi committed Jul 2, 2024
1 parent 4de353c commit 90f4bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
file: Dockerfile
context: .
push: true
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
# if tag is an empty string, plugin will skip that tag.
tags: |
${{ env.ORG }}/${{ env.BDJUNO_IMAGE_NAME }}:latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM --platform=$TARGETPLATFORM alpine:latest
WORKDIR /bdjuno
RUN apk update
RUN apk add postgresql
COPY ./bin/.cache/bdjuno/docker.linux.amd64/bin/bdjuno /usr/bin/bdjuno
COPY ./bin/.cache/bdjuno/docker.$TARGETOS.$TARGETARCH/bin/bdjuno /usr/bin/bdjuno
COPY database/schema /var/lib/postgresql/schema
RUN chmod a+rx /var/lib/postgresql && \
chmod a+rx /var/lib/postgresql/schema
Expand Down

0 comments on commit 90f4bd3

Please sign in to comment.