-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser-dashboard-qa.yml
87 lines (73 loc) · 2.48 KB
/
.goreleaser-dashboard-qa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
project_name: epinio-ui-qa
archives:
- name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
amd64: x86_64
format: binary
format_overrides:
- goos: windows
format: zip
before:
hooks:
- sh -c "cd src/jetstream && go mod download"
builds:
- id: epinio-ui
dir: src/jetstream
binary: epinio-ui
ldflags:
- -w -s
- -X "main.appVersion={{ .Tag }}"
goos:
- linux
goarch:
- amd64
changelog:
skip: true
dockers:
-
use: buildx
# ID of the image, needed if you want to filter by it later on (e.g. on custom publishers).
id: epinio-ui
# GOOS of the built binaries/packages that should be used.
goos: linux
# GOARCH of the built binaries/packages that should be used.
goarch: amd64
# IDs to filter the binaries/packages.
ids:
- epinio-ui
# Templates of the Docker image names.
image_templates:
- "epinioteam/epinio-ui-qa:{{ .Tag }}-amd64"
# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile
# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=epinio.io.ui.source=epinio-standalone-latest"
- "--label=org.opencontainers.image.source=https://github.com/epinio/epinio-end-to-end-tests/ui-backend"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/amd64"
# If your Dockerfile copies files other than binaries and packages,
# you should list them here as well.
# Note that GoReleaser will create the same structure inside a temporary
# folder, so if you add `foo/bar.json` here, on your Dockerfile you can
# `COPY foo/bar.json /whatever.json`.
# Also note that the paths here are relative to the folder in which
# GoReleaser is being run (usually the repository root folder).
# This field does not support wildcards, you can add an entire folder here
# and use wildcards when you `COPY`/`ADD` in your Dockerfile.
extra_files:
- ui/
release:
disable: true
docker_manifests:
# https://goreleaser.com/customization/docker_manifest/
-
name_template: "epinioteam/epinio-ui-qa:latest"
image_templates:
- "epinioteam/epinio-ui-qa:{{ .Tag }}-amd64"