Skip to content

Commit

Permalink
feat: use WORKDIR and ENTRYPOINT for cli containers (#63)
Browse files Browse the repository at this point in the history
required for running the bluebuild CLI directly from podman (needed for
latest version of bluebuild for github action)

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
  • Loading branch information
gerblesh and gmpinder authored Feb 14, 2024
1 parent 5ce8894 commit d26382b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ blue-build-cli:

ARG TAG
ARG LATEST=false

RUN mkdir -p /bluebuild
WORKDIR /bluebuild
ENTRYPOINT ["bluebuild"]

DO cargo+SAVE_IMAGE --IMAGE=$IMAGE --TAG=$TAG --LATEST=$LATEST --NIGHTLY=$NIGHTLY

blue-build-cli-alpine:
Expand All @@ -91,6 +96,11 @@ blue-build-cli-alpine:

ARG TAG
ARG LATEST=false

RUN mkdir -p /bluebuild
WORKDIR /bluebuild
ENTRYPOINT ["bluebuild"]

DO cargo+SAVE_IMAGE --IMAGE=$IMAGE --TAG=$TAG --LATEST=$LATEST --NIGHTLY=$NIGHTLY --ALPINE=true

installer:
Expand Down

0 comments on commit d26382b

Please sign in to comment.