Skip to content

Commit

Permalink
Set env for IF
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke committed Mar 6, 2024
1 parent 2da9905 commit 83ea588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ release:
ARG NATIVEARCH

# Only require this when `--push` is set to allow for local testing
FROM --platform="linux/$NATIVEARCH" alpine:3.19.0
IF [ $EARTHLY_PUSH ]
ARG --required GH_TOKEN
END

# Create GH release and upload artifact(s)
FROM --platform="linux/$NATIVEARCH" alpine:3.19.0
# Unfortunately GH does not release a container image for their CLI, see https://github.com/cli/cli/issues/2027
RUN apk add github-cli
WORKDIR /release_artifacts
Expand Down

0 comments on commit 83ea588

Please sign in to comment.