github.com/amazechain/amc@v0.1.3/.goreleaser.yml (about)

     1  project_name: amc
     2  
     3  release:
     4    disable: false
     5    draft: true
     6    prerelease: auto
     7  
     8  builds:
     9    - id: darwin-amd64
    10      main: ./cmd/amc
    11      binary: amazechain
    12      goos: [ darwin ]
    13      goarch: [ amd64 ]
    14      env:
    15        - CC=o64-clang
    16        - CXX=o64-clang++
    17      tags: [ nosqlite, noboltdb ]
    18      ldflags: -s -w
    19  
    20    - id: darwin-arm64
    21      main: ./cmd/amc
    22      binary: amazechain
    23      goos: [ darwin ]
    24      goarch: [ arm64 ]
    25      env:
    26        - CC=oa64-clang
    27        - CXX=oa64-clang++
    28      tags: [ nosqlite, noboltdb ]
    29      ldflags: -s -w
    30  
    31    - id: linux-amd64
    32      main: ./cmd/amc
    33      binary: amazechain
    34      goos: [ linux ]
    35      goarch: [ amd64 ]
    36      env:
    37        - CC=x86_64-linux-gnu-gcc
    38        - CXX=x86_64-linux-gnu-g++
    39      tags: [ nosqlite, noboltdb ]
    40      ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container
    41  
    42    - id: linux-arm64
    43      main: ./cmd/amc
    44      binary: amazechain
    45      goos: [ linux ]
    46      goarch: [ arm64 ]
    47      env:
    48        - CC=aarch64-linux-gnu-gcc
    49        - CXX=aarch64-linux-gnu-g++
    50      tags: [ nosqlite, noboltdb ]
    51      ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container
    52  
    53    - id: windows-amd64
    54      main: ./cmd/amc
    55      binary: amazechain
    56      goos: [ windows ]
    57      goarch: [ amd64 ]
    58      env:
    59        - CC=x86_64-w64-mingw32-gcc
    60        - CXX=x86_64-w64-mingw32-g++
    61      tags: [ nosqlite, noboltdb ]
    62      ldflags: -s -w
    63  
    64  
    65  dockers:
    66    - image_templates:
    67        - amazechain/{{ .ProjectName }}:{{ .Version }}-amd64
    68      dockerfile: Dockerfile.release
    69      use: buildx
    70      skip_push: true
    71      goarch: amd64
    72      ids:
    73        - linux-amd64
    74      build_flag_templates:
    75        - --platform=linux/amd64
    76  
    77    - image_templates:
    78        - amazechain/{{ .ProjectName }}:{{ .Version }}-arm64
    79      dockerfile: Dockerfile.release
    80      skip_push: true
    81      use: buildx
    82      goarch: arm64
    83      ids:
    84        - linux-arm64
    85      build_flag_templates:
    86        - --platform=linux/arm64/v8
    87  
    88  docker_manifests:
    89    - name_template: amazechain/{{ .ProjectName }}:{{ .Version }}
    90      skip_push: true
    91      image_templates:
    92        - amazechain/{{ .ProjectName }}:{{ .Version }}-amd64
    93        - amazechain/{{ .ProjectName }}:{{ .Version }}-arm64
    94  
    95    - name_template: amazechain/{{ .ProjectName }}:latest
    96      skip_push: true
    97      image_templates:
    98        - amazechain/{{ .ProjectName }}:{{ .Version }}-amd64
    99        - amazechain/{{ .ProjectName }}:{{ .Version }}-arm64