Skip to content

Commit

Permalink
build: COPY stop repeating target location
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 committed Mar 30, 2024
1 parent ad35e64 commit c7a5e65
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ VERSION 0.7

COPY_CI_DATA:
COMMAND
COPY "./ci" "./ci"
COPY ".github" ".github"
COPY --dir "ci/" ".github/" "./"


COPY_METADATA:
COMMAND
DO +COPY_CI_DATA
COPY ".git" ".git"
COPY --dir ".git/" "./"


rust-base:
Expand Down Expand Up @@ -49,7 +48,7 @@ check-shell-formatting:
yaml-formatting-base:
FROM +golang-base
RUN go install github.com/google/yamlfmt/cmd/[email protected]
COPY ".yamlfmt" ".yamlfmt"
COPY ".yamlfmt" "./"
DO +COPY_CI_DATA


Expand Down Expand Up @@ -110,9 +109,7 @@ check-github-actions-workflows-linting:
COPY_SOURCECODE:
COMMAND
DO +COPY_CI_DATA
COPY "./zsh-simple-abbreviations.zsh" "./zsh-simple-abbreviations.zsh"
COPY "./src" "./src"
COPY "./end-to-end-tests" "./end-to-end-tests"
COPY --dir "zsh-simple-abbreviations.zsh/" "src/" "end-to-end-tests/" "./"


e2e-test:
Expand Down

0 comments on commit c7a5e65

Please sign in to comment.