1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Improved docker build process

This commit is contained in:
Mike Farah
2018-10-25 17:49:46 +11:00
parent 90fe9c6512
commit 785ee68a76
3 changed files with 14 additions and 1 deletions

9
scripts/publish-docker.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/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} \
.