Skip to content

Commit

Permalink
Clarified: import path in golang-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Yakubov authored and Alexey Yakubov committed Jan 13, 2025
1 parent 8c9934b commit 4011e20
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions images/sds-local-volume-controller/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ final: false

import:
- image: {{ $.ImageName }}-src-artifact
add: /
to: /
add: /src
to: /src
before: install

mount:
Expand Down
4 changes: 2 additions & 2 deletions images/sds-local-volume-csi/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ final: false

import:
- image: {{ $.ImageName }}-src-artifact
add: /
to: /
add: /src
to: /src
before: install

mount:
Expand Down
5 changes: 2 additions & 3 deletions images/sds-local-volume-scheduler-extender/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ final: false

import:
- image: {{ $.ImageName }}-src-artifact
add: /
to: /
add: /src
to: /src
before: install

mount:
Expand All @@ -39,7 +39,6 @@ shell:
setup:
- cd /src/images/{{ $.ImageName }}/src/cmd
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o /{{ $.ImageName }}
# - mv sds-local-volume-scheduler-extender /sds-local-volume-scheduler-extender
- chmod +x /{{ $.ImageName }}

---
Expand Down
9 changes: 4 additions & 5 deletions images/webhooks/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ final: false

import:
- image: {{ $.ImageName }}-src-artifact
add: /
to: /
before: install #setup
add: /src
to: /src
before: install

mount:
- fromPath: ~/go-pkg-cache
Expand All @@ -38,7 +38,6 @@ shell:
setup:
- cd /src/images/{{ $.ImageName }}/src
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o /{{ $.ImageName }}
# - mv webhooks /webhooks
- chmod +x /{{ $.ImageName }}
---
image: {{ $.ImageName }}
Expand All @@ -48,7 +47,7 @@ import:
- image: {{ $.ImageName }}-golang-artifact
add: /{{ $.ImageName }}
to: /{{ $.ImageName }}
before: install #setup
before: install

docker:
ENTRYPOINT: ["/{{ $.ImageName }}"]

0 comments on commit 4011e20

Please sign in to comment.