This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: COPY stop repeating target location (#104)
- Loading branch information
1 parent
c5c26b7
commit 9b13be7
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,14 @@ VERSION 0.7 | |
|
||
COPY_CI_DATA: | ||
COMMAND | ||
COPY "./ci" "./ci" | ||
COPY ".github" ".github" | ||
COPY ".goreleaser.yaml" ".goreleaser.yaml" | ||
COPY --dir "ci/" ".github/" "./" | ||
COPY ".goreleaser.yaml" "./" | ||
|
||
|
||
COPY_METADATA: | ||
COMMAND | ||
DO +COPY_CI_DATA | ||
COPY ".git" ".git" | ||
COPY --dir ".git/" "./" | ||
|
||
|
||
rust-base: | ||
|
@@ -37,16 +36,14 @@ check-conventional-commits-linting: | |
|
||
INSTALL_DEPENDENCIES: | ||
COMMAND | ||
COPY "go.mod" "go.mod" | ||
COPY "go.sum" "go.sum" | ||
COPY "go.mod" "go.sum" "./" | ||
RUN go mod download | ||
|
||
|
||
COPY_SOURCECODE: | ||
COMMAND | ||
DO +COPY_CI_DATA | ||
COPY "./cmd" "./cmd" | ||
COPY "./api" "./api" | ||
COPY --dir "cmd/" "api/" "./" | ||
|
||
|
||
golang-base: | ||
|
@@ -79,7 +76,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 | ||
|
||
|
||
|
@@ -208,7 +205,7 @@ release-artifacts: | |
FROM +ubuntu-base | ||
RUN apt-get install git wget jq -y | ||
DO +INSTALL_GITHUB_CLI | ||
COPY +compile/dist ./dist | ||
COPY "+compile/dist/" "./" | ||
DO +COPY_METADATA | ||
ARG release | ||
RUN --secret GH_TOKEN ./ci/release-artifacts.sh --release "${release}" |