mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-15 21:48:13 +03:00
ci/cd: don't build unnecessary binaries for next image
This commit is contained in:
@@ -60,11 +60,30 @@ builds:
|
|||||||
- -trimpath
|
- -trimpath
|
||||||
- -p=2
|
- -p=2
|
||||||
mod_timestamp: "{{ .CommitTimestamp }}"
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
||||||
|
skip: '{{ if index .Env "BUILD_NEXT" }}true{{ end }}'
|
||||||
|
|
||||||
|
- id: pocket-id-next
|
||||||
|
main: ./cmd
|
||||||
|
dir: backend
|
||||||
|
binary: pocket-id
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
- GOMAXPROCS=2
|
||||||
|
targets:
|
||||||
|
- linux_amd64_v1
|
||||||
|
- linux_arm64_v8.0
|
||||||
|
ldflags:
|
||||||
|
- -w -s
|
||||||
|
- -buildid={{ .Version }}
|
||||||
|
- -X github.com/pocket-id/pocket-id/backend/internal/common.Version={{ .Version }}
|
||||||
|
flags:
|
||||||
|
- -trimpath
|
||||||
|
- -p=2
|
||||||
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
||||||
|
skip: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: default
|
- id: default
|
||||||
ids:
|
|
||||||
- pocket-id
|
|
||||||
formats:
|
formats:
|
||||||
- binary
|
- binary
|
||||||
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
|
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
|
||||||
@@ -136,7 +155,7 @@ dockers_v2:
|
|||||||
|
|
||||||
- id: pocket-id-next
|
- id: pocket-id-next
|
||||||
ids:
|
ids:
|
||||||
- pocket-id
|
- pocket-id-next
|
||||||
dockerfile: docker/Dockerfile-prebuilt
|
dockerfile: docker/Dockerfile-prebuilt
|
||||||
images:
|
images:
|
||||||
- "pocketid/pocket-id"
|
- "pocketid/pocket-id"
|
||||||
@@ -164,7 +183,7 @@ dockers_v2:
|
|||||||
|
|
||||||
- id: pocket-id-next-distroless
|
- id: pocket-id-next-distroless
|
||||||
ids:
|
ids:
|
||||||
- pocket-id
|
- pocket-id-next
|
||||||
dockerfile: docker/Dockerfile-distroless
|
dockerfile: docker/Dockerfile-distroless
|
||||||
images:
|
images:
|
||||||
- "pocketid/pocket-id"
|
- "pocketid/pocket-id"
|
||||||
@@ -190,7 +209,7 @@ dockers_v2:
|
|||||||
|
|
||||||
notarize:
|
notarize:
|
||||||
macos:
|
macos:
|
||||||
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
|
- enabled: '{{ if and (isEnvSet "MACOS_SIGN_P12") (not (index .Env "BUILD_NEXT")) }}true{{ end }}'
|
||||||
ids:
|
ids:
|
||||||
- pocket-id
|
- pocket-id
|
||||||
sign:
|
sign:
|
||||||
|
|||||||
Reference in New Issue
Block a user