Skip to content

Commit

Permalink
Removed YAML anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpz7 committed Apr 13, 2023
1 parent c2e836b commit 2b3c03b
Showing 1 changed file with 169 additions and 27 deletions.
196 changes: 169 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,6 @@ env:
- DOCKER_BUILDX_CACHE_FROM={{ if index .Env "DOCKER_BUILDX_CACHE_FROM" }}{{ .Env.DOCKER_BUILDX_CACHE_FROM }}{{ else }}type=registry{{ end }}
- DOCKER_BUILDX_CACHE_TO={{ if index .Env "DOCKER_BUILDX_CACHE_TO" }}{{ .Env.DOCKER_BUILDX_CACHE_TO }}{{ else }}type=inline{{ end }}

build_flag_templates: &BUILD_FLAG_TEMPLATES
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research

dockers:
- id: bundle
use: buildx
Expand All @@ -164,7 +150,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- server
- executor
Expand All @@ -184,7 +182,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookout-bundle:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-lookout-bundle:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookout
- lookoutv2
Expand All @@ -210,7 +220,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-full-bundle:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-full-bundle:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookout
- lookoutv2
Expand Down Expand Up @@ -241,7 +263,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-server:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-server:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- server
extra_files:
Expand All @@ -255,7 +289,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-executor:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-executor:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- executor
extra_files:
Expand All @@ -269,7 +315,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookoutingester:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-lookoutingester:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookoutingester
extra_files:
Expand All @@ -283,7 +341,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookoutingesterv2:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-lookoutingesterv2:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookoutingesterv2
extra_files:
Expand All @@ -297,7 +367,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookout:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-lookout:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookout
- lookoutingester
Expand All @@ -317,7 +399,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookoutv2:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-lookoutv2:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- lookoutv2
- lookoutingesterv2
Expand All @@ -333,7 +427,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-eventingester:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-eventingester:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- eventingester
extra_files:
Expand All @@ -347,7 +453,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-binoculars:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-binoculars:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- binoculars
extra_files:
Expand All @@ -361,7 +479,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-jobservice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armada-jobservice:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- jobservice
extra_files:
Expand All @@ -375,7 +505,19 @@ dockers:
image_templates:
- "{{ .Env.DOCKER_REPO }}armadactl:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "{{ .Env.DOCKER_REPO }}armadactl:latest"
build_flag_templates: *BUILD_FLAG_TEMPLATES
build_flag_templates:
- --build-arg={{ .Env.BASE_IMAGE_ARG }}
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --cache-to={{ .Env.DOCKER_BUILDX_CACHE_TO }}
- --cache-from={{ .Env.DOCKER_BUILDX_CACHE_FROM }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.17.0
- --label=org.opencontainers.image.base.digest=c0d488a800e4
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- armadactl
dockerfile: ./build_goreleaser/armadactl/Dockerfile
Expand Down

0 comments on commit 2b3c03b

Please sign in to comment.