github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/.goreleaser.yml (about)

     1  # This config is used to build code and publish Docker images on new tag
     2  project_name: budget-manager
     3  
     4  release:
     5    github:
     6      owner: ShoshinNikita
     7      name: budget-manager
     8    prerelease: auto
     9  
    10  changelog:
    11    skip: true
    12  
    13  builds:
    14    - skip: true
    15  
    16  dockers:
    17    - dockerfile: Dockerfile
    18      image_templates:
    19        - "ghcr.io/shoshinnikita/{{ .ProjectName }}:latest"
    20        - "ghcr.io/shoshinnikita/{{ .ProjectName }}:{{ .Tag }}"
    21      build_flag_templates:
    22        - "--build-arg=LDFLAGS=-s -w -X 'main.version={{ .Tag }}' -X 'main.gitHash={{ .ShortCommit }}'"
    23      extra_files:
    24        # Dirs
    25        - cmd/
    26        - internal/
    27        - static/
    28        - templates/
    29        - vendor/
    30        # Files
    31        - go.mod
    32        - go.sum