|
| 1 | +before: |
| 2 | + hooks: |
| 3 | + - go mod tidy |
| 4 | +builds: |
| 5 | + - env: |
| 6 | + - CGO_ENABLED=0 |
| 7 | + targets: |
| 8 | + - linux_amd64 |
| 9 | + - linux_arm64 |
| 10 | + - linux_arm_6 |
| 11 | + - linux_arm_7 |
| 12 | + tags: timetzdata |
| 13 | + ldflags: |
| 14 | + - -X main.Version={{.Version}} |
| 15 | + - -X main.Revision={{.ShortCommit}} |
| 16 | + - -X main.Branch={{.Branch}} |
| 17 | + - -X main.BuildDate={{.CommitDate}} |
| 18 | +checksum: |
| 19 | + name_template: 'checksums.txt' |
| 20 | + |
| 21 | +release: |
| 22 | + footer: | |
| 23 | + ## Docker images |
| 24 | + - `docker pull ghcr.io/kbudde/gota:{{.Version}}` |
| 25 | + - `docker pull ghcr.io/kbudde/gota:{{.ShortCommit}}` |
| 26 | +dockers: |
| 27 | +- goos: linux |
| 28 | + goarch: amd64 |
| 29 | + image_templates: |
| 30 | + - "ghcr.io/kbudde/gota:linux-amd64-{{.ShortCommit}}" |
| 31 | + use: buildx |
| 32 | + build_flag_templates: |
| 33 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 34 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 35 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 36 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 37 | + - "--label=org.opencontainers.image.source=https://github.com/kbudde/gota" |
| 38 | + - "--platform=linux/amd64" |
| 39 | + |
| 40 | +- goos: linux |
| 41 | + goarch: arm |
| 42 | + goarm: 6 |
| 43 | + image_templates: |
| 44 | + - "ghcr.io/kbudde/gota:linux-arm6-{{.ShortCommit}}" |
| 45 | + use: buildx |
| 46 | + build_flag_templates: |
| 47 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 48 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 49 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 50 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 51 | + - "--label=org.opencontainers.image.source=https://github.com/kbudde/gota" |
| 52 | + - "--platform=linux/arm/v6" |
| 53 | + |
| 54 | +- goos: linux |
| 55 | + goarch: arm |
| 56 | + goarm: 7 |
| 57 | + image_templates: |
| 58 | + - "ghcr.io/kbudde/gota:linux-arm7-{{.ShortCommit}}" |
| 59 | + use: buildx |
| 60 | + build_flag_templates: |
| 61 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 62 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 63 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 64 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 65 | + - "--label=org.opencontainers.image.source=https://github.com/kbudde/gota" |
| 66 | + - "--platform=linux/arm/v7" |
| 67 | + |
| 68 | +- goos: linux |
| 69 | + goarch: arm64 |
| 70 | + image_templates: |
| 71 | + - "ghcr.io/kbudde/gota:linux-arm64-{{.ShortCommit}}" |
| 72 | + use: buildx |
| 73 | + build_flag_templates: |
| 74 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 75 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 76 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 77 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 78 | + - "--label=org.opencontainers.image.source=https://github.com/kbudde/gota" |
| 79 | + - "--platform=linux/arm64" |
| 80 | + |
| 81 | + |
| 82 | +docker_manifests: |
| 83 | +- |
| 84 | + name_template: ghcr.io/kbudde/gota:latest |
| 85 | + image_templates: |
| 86 | + - ghcr.io/kbudde/gota:linux-amd64-{{.ShortCommit}} |
| 87 | + - ghcr.io/kbudde/gota:linux-arm6-{{.ShortCommit}} |
| 88 | + - ghcr.io/kbudde/gota:linux-arm7-{{.ShortCommit}} |
| 89 | + - ghcr.io/kbudde/gota:linux-arm64-{{.ShortCommit}} |
| 90 | +- |
| 91 | + name_template: ghcr.io/kbudde/gota:{{.Version}} |
| 92 | + image_templates: |
| 93 | + - ghcr.io/kbudde/gota:linux-amd64-{{.ShortCommit}} |
| 94 | + - ghcr.io/kbudde/gota:linux-arm6-{{.ShortCommit}} |
| 95 | + - ghcr.io/kbudde/gota:linux-arm7-{{.ShortCommit}} |
| 96 | + - ghcr.io/kbudde/gota:linux-arm64-{{.ShortCommit}} |
| 97 | + |
0 commit comments