Skip to content

Commit

Permalink
add release tag from docker build (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Jul 3, 2021
1 parent f594e05 commit 01644f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "minio/kes:{{ .Tag }}-ppc64le"
use_buildx: true
Expand All @@ -83,6 +84,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/ppc64le"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "minio/kes:{{ .Tag }}-s390x"
use_buildx: true
Expand All @@ -92,6 +94,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/s390x"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "minio/kes:{{ .Tag }}-arm64"
use_buildx: true
Expand All @@ -102,6 +105,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "quay.io/minio/kes:{{ .Tag }}-amd64"
use_buildx: true
Expand All @@ -111,6 +115,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "quay.io/minio/kes:{{ .Tag }}-ppc64le"
use_buildx: true
Expand All @@ -120,6 +125,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/ppc64le"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "quay.io/minio/kes:{{ .Tag }}-s390x"
use_buildx: true
Expand All @@ -129,6 +135,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/s390x"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "quay.io/minio/kes:{{ .Tag }}-arm64"
use_buildx: true
Expand All @@ -139,6 +146,7 @@ dockers:
- CREDITS
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=TAG={{ .Tag }}"
docker_manifests:
- name_template: minio/kes:{{ .Tag }}
image_templates:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14-alpine as build
FROM golang:1.16-alpine as build

LABEL maintainer="MinIO Inc <dev@min.io>"

Expand Down
8 changes: 5 additions & 3 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4

ARG TAG

LABEL name="MinIO" \
vendor="MinIO Inc <dev@min.io>" \
maintainer="MinIO Inc <dev@min.io>" \
version="v0.14.0" \
release="v0.14.0" \
version="${TAG}" \
release="${TAG}" \
summary="KES is a stateless and distributed key-management system for high-performance applications." \
description="KES as the bridge between modern applications - running as containers on Kubernetes - and centralized KMS solutions. Therefore, KES has been designed to be simple, scalable and secure by default. It has just a few knobs to tweak instead of a complex configuration and does not require a deep understanding of secure key-management or cryptography."

Expand Down

0 comments on commit 01644f7

Please sign in to comment.