Skip to content

Commit

Permalink
build(goreleaser): add --pull flag to docker build when building imag…
Browse files Browse the repository at this point in the history
…es (#2711)

Currently there are vulnerabilities in the images which should be fixed upstream.
Make sure to build from the lates base images when running goreleaser.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
hairyhum and mergify[bot] committed Mar 5, 2024
1 parent f456d39 commit a0585c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,22 @@ dockers:
image_templates:
- 'ghcr.io/kanisterio/controller:{{ .Tag }}'
dockerfile: 'docker/controller/Dockerfile'
build_flag_templates:
- "--pull"
- ids:
- repo-server-controller
image_templates:
- 'ghcr.io/kanisterio/repo-server-controller:{{ .Tag }}'
dockerfile: 'docker/repo-server-controller/Dockerfile'
build_flag_templates:
- "--pull"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/kanister-tools:{{ .Tag }}'
dockerfile: 'docker/tools/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=kan_tools_version={{ .Tag }}"
# Refers to https://github.com/kopia/kopia/commit/1d6f852cd6534f4bea978cbdc85c583803d79f77
- "--build-arg=kopia_build_commit=1d6f852"
Expand All @@ -75,61 +80,75 @@ dockers:
- 'ghcr.io/kanisterio/postgres-kanister-tools:{{ .Tag }}'
dockerfile: 'docker/postgres-kanister-tools/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- image_templates:
- 'ghcr.io/kanisterio/postgresql:{{ .Tag }}'
dockerfile: 'docker/postgresql/Dockerfile'
build_flag_templates:
- "--pull"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/es-sidecar:{{ .Tag }}'
dockerfile: 'docker/kanister-elasticsearch/image/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/mysql-sidecar:{{ .Tag }}'
dockerfile: 'docker/kanister-mysql/image/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- image_templates:
- 'ghcr.io/kanisterio/kanister-kubectl-1.18:{{ .Tag }}'
dockerfile: 'docker/kanister-kubectl/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/mongodb:{{ .Tag }}'
dockerfile: 'docker/mongodb/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/cassandra:{{ .Tag }}'
dockerfile: 'docker/cassandra/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
- image_templates:
- 'ghcr.io/kanisterio/kafka-adobe-s3-source-connector:{{ .Tag }}'
dockerfile: 'docker/kafka-adobes3Connector/image/adobeSource.Dockerfile'
extra_files:
- 'docker/kafka-adobes3Connector/image/adobe-monitorsource.sh'
- 'docker/kafka-adobes3Connector/image/cleans3.py'
build_flag_templates:
- "--pull"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/kafka-adobe-s3-sink-connector:{{ .Tag }}'
dockerfile: 'docker/kafka-adobes3Connector/image/adobeSink.Dockerfile'
extra_files:
- 'docker/kafka-adobes3Connector/image/adobe-monitorsink.sh'
build_flag_templates:
- "--pull"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/mssql-tools:{{ .Tag }}'
dockerfile: 'docker/mssql-tools/Dockerfile'
build_flag_templates:
- "--pull"
snapshot:
name_template: '{{ .Tag }}'
checksum:
Expand Down

0 comments on commit a0585c8

Please sign in to comment.