Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
  • Loading branch information
duckhawk committed Jan 9, 2025
1 parent d963d7e commit d1bf36e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
28 changes: 12 additions & 16 deletions images/controller/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,33 @@ image: {{ $.ImageName }}-src-artifact
from: {{ $.BASE_ALT }}
final: false
git:
- add: /images/{{ .ImageName }}/src
to: /src/controller
- add: /
to: /src
includePaths:
- '**/*'
- api
- images/controller/src
stageDependencies:
install:
- '**/*'
shell:
install:
- rm -rf /src/controller/.git

---
image: {{ $.ImageName }}-golang-artifact
from: {{ $.BASE_GOLANG }}
final: false

git:
- add: /
to: /
includePaths:
- api
- images/controller/src
stageDependencies:
setup:
- "**/*"
import:
- image: {{ $.ImageName }}-src-artifact
add: /src
to: /src
before: setup

mount:
- fromPath: ~/go-pkg-cache
to: /go/pkg

shell:
setup:
- cd /images/controller/src/cmd
- cd /src/images/controller/src/cmd
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o /controller
- chmod +x /controller

Expand Down
2 changes: 2 additions & 0 deletions images/webhooks/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ import:
mount:
- fromPath: ~/go-pkg-cache
to: /go/pkg

shell:
setup:
- cd /src/images/webhooks/src/cmd
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o /webhooks
- chmod +x /webhooks

---
image: {{ $.ImageName }}
from: {{ $.BASE_SCRATCH }}
Expand Down

0 comments on commit d1bf36e

Please sign in to comment.