yq/scripts/publish-docker.sh

12 lines
258 B
Bash
Raw Normal View History

2018-10-25 06:49:46 +00:00
#!/bin/bash
set -ex
VERSION="$(git describe --tags --abbrev=0)"
docker build \
--target production \
--build-arg VERSION=${VERSION} \
-t mikefarah/yq:latest \
-t mikefarah/yq:${VERSION} \
2020-12-22 05:16:31 +00:00
-t mikefarah/yq:4 \
.
trivy image mikefarah/yq:${VERSION}