Skip to content

Commit

Permalink
Fixes GoReleaser config by removing YAML anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
bvobart committed Jun 13, 2021
1 parent 89a3142 commit 274c8be
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,34 @@ builds:
- -s -w -X github.com/bvobart/mllint/commands.version={{.Version}} -X github.com/bvobart/mllint/commands.commit={{.Commit}} -X github.com/bvobart/mllint/commands.date={{.CommitDate}}
mod_timestamp: '{{ .CommitTimestamp }}'

.dockers-common: &dockers-common
use_buildx: true
extra_files:
- build/requirements-tools.txt

# Build Docker containers of `mllint` for Python versions [3.6, 3.7, 3.8, 3.9]
dockers:
- image_templates:
- bvobart/mllint:latest-py3.6
- bvobart/mllint:{{.Version}}-py3.6
build_flag_templates:
- --build-arg=python_version=3.6
<<: *dockers-common
extra_files:
- build/requirements-tools.txt
use_buildx: true

- image_templates:
- bvobart/mllint:latest-py3.7
- bvobart/mllint:{{.Version}}-py3.7
build_flag_templates:
- --build-arg=python_version=3.7
<<: *dockers-common
extra_files:
- build/requirements-tools.txt
use_buildx: true

- image_templates:
- bvobart/mllint:latest-py3.8
- bvobart/mllint:{{.Version}}-py3.8
build_flag_templates:
- --build-arg=python_version=3.8
<<: *dockers-common
extra_files:
- build/requirements-tools.txt
use_buildx: true

- image_templates:
- bvobart/mllint:latest
Expand All @@ -50,7 +51,9 @@ dockers:
- bvobart/mllint:{{.Version}}-py3.9
build_flag_templates:
- --build-arg=python_version=3.9
<<: *dockers-common
extra_files:
- build/requirements-tools.txt
use_buildx: true

archives:
- format: tar.gz
Expand Down

0 comments on commit 274c8be

Please sign in to comment.