mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-21 15:26:29 +00:00
28 lines
839 B
Makefile
28 lines
839 B
Makefile
# Only build binary for current platform.
|
|
build-only-bin:
|
|
goreleaser build --snapshot --clean --single-target --config ./build/release.yaml
|
|
|
|
# Build binaries, packages, docker images for all platforms.
|
|
build:
|
|
goreleaser release --snapshot --clean --config ./build/release.yaml
|
|
|
|
# Unstable release process.
|
|
unstable:
|
|
#!/bin/env bash
|
|
set -exuo pipefail
|
|
export DOCKER_REGISTRY={{ DOCKER_REGISTRY }}
|
|
|
|
goreleaser release --clean --snapshot --config ./build/release.yaml
|
|
|
|
IMAGES=$(docker image ls --format "{{'{{ .Repository }}:{{ .Tag }}'}}" | grep -e "{{ DOCKER_IMAGE }}.*")
|
|
|
|
for image in ${IMAGES}; do
|
|
docker push ${image}
|
|
done
|
|
|
|
docker manifest create {{ DOCKER_IMAGE }} ${IMAGES}
|
|
docker manifest push {{ DOCKER_IMAGE }}
|
|
|
|
# Stable release process.
|
|
release:
|
|
goreleaser release --clean --config ./build/release.yaml
|