Skip to content

Commit

Permalink
feat(ledger): optimize release script in Earthfile (issue #123)
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jan 2, 2025
1 parent f20f62b commit 7c7acd6
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ pre-commit-nix:
END
# BUILD +tests
BUILD +export-docs-events
# BUILD +release

openapi:
FROM node:20-alpine
Expand All @@ -146,21 +145,10 @@ tidy:
SAVE ARTIFACT go.sum

release:
LOCALLY
FROM core+builder-image
ARG mode=local
# TODO: Move to function in earthly repostiory
LET buildArgs = --clean
IF [ "$mode" = "local" ]
SET buildArgs = --nightly --skip=publish --clean
ELSE IF [ "$mode" = "ci" ]
SET buildArgs = --nightly --clean
END
IF [ "$mode" != "local" ]
WITH DOCKER
RUN --secret GITHUB_TOKEN echo $GITHUB_TOKEN | docker login ghcr.io -u NumaryBot --password-stdin
END
END
RUN goreleaser release -f .goreleaser.yml $buildArgs
COPY --dir . /src
DO core+GORELEASER --mode=$mode

generate-client:
FROM node:20-alpine
Expand Down

0 comments on commit 7c7acd6

Please sign in to comment.