File: docker-bake.hcl

package info (click to toggle)
singularity-container 4.1.5%2Bds4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,876 kB
  • sloc: asm: 14,840; sh: 3,190; ansic: 1,751; awk: 414; makefile: 413; python: 99
file content (68 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download
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
variable "COVER_FILENAME" {
    default = null
}

variable "BENCH_FILENAME" {
    default = null
}

variable "GO_VERSION" {
    default = null
}

target "default" {
    targets = ["build"]
}

target "_all_platforms" {
    platforms = [
        "linux/amd64",
        "linux/arm64",
        "linux/arm/v7",
        "linux/arm/v6",
        "linux/386",
        "linux/ppc64le",
        "linux/s390x",
        "darwin/amd64",
        "darwin/arm64",
        "windows/amd64",
    ]
}

target "build" {
    output = ["type=cacheonly"]
    args = {
        GO_VERSION = GO_VERSION
    }
}

target "build-all" {
    inherits = ["build", "_all_platforms"]
}

target "test" {
    target = "test"
    args = {
        COVER_FILENAME = COVER_FILENAME
        GO_VERSION = GO_VERSION
    }
    output = [COVER_FILENAME!=null?".":"type=cacheonly"]
}

target "bench" {
    target = "bench"
    args = {
        BENCH_FILENAME = BENCH_FILENAME
        GO_VERSION = GO_VERSION
    }
    output = [BENCH_FILENAME!=null?".":"type=cacheonly"]
}

target "lint" {
    dockerfile = "hack/dockerfiles/lint.Dockerfile"
    output = ["type=cacheonly"]
}

target "lint-all" {
    inherits = ["lint", "_all_platforms"]
}