mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 15:18:06 +00:00
12 lines
258 B
Bash
Executable File
12 lines
258 B
Bash
Executable File
#!/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} \
|
|
-t mikefarah/yq:4 \
|
|
.
|
|
|
|
trivy image mikefarah/yq:${VERSION} |