diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6a06cae --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +build/ +.git/ +docker-compose.yml +README.md +Earthfile +config.example.json +.gitignore +.vscode/ +budgeteer +budgeteer.exe \ No newline at end of file diff --git a/.earthignore b/.earthignore index 5fdfa61..622e4b4 100644 --- a/.earthignore +++ b/.earthignore @@ -5,4 +5,6 @@ README.md Earthfile config.example.json .gitignore -.vscode/ \ No newline at end of file +.vscode/ +budgeteer +budgeteer.exe diff --git a/Earthfile b/Earthfile index 12b5d00..2bdcf67 100644 --- a/Earthfile +++ b/Earthfile @@ -5,7 +5,7 @@ build: COPY go.mod go.sum . RUN go mod download COPY . . - RUN go build -o build/budgeteer ./cmd/budgeteer + RUN --mount=type=cache,target=/root/.cache/go-build go build -o build/budgeteer ./cmd/budgeteer SAVE ARTIFACT build/budgeteer /budgeteer AS LOCAL build/budgeteer docker: