[add] image tag corresponds git tag

This commit is contained in:
oldnick85
2023-02-18 18:31:15 +03:00
parent 6ef0b657f5
commit b34c0067ab
+2 -1
View File
@@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
TAG_VERSION=$(git describe --tags || echo "unknown")
docker build \ docker build \
--build-arg UBUNTU_VERSION=22.04 \ --build-arg UBUNTU_VERSION=22.04 \
--build-arg I2PD_VERSION=2.46.0 \ --build-arg I2PD_VERSION=2.46.0 \
--build-arg I2PD_COMPILER=gcc \ --build-arg I2PD_COMPILER=gcc \
--build-arg YGGDRASIL_VERSION=v0.4.7 \ --build-arg YGGDRASIL_VERSION=v0.4.7 \
--tag i2pd_yggdrasil:latest \ --tag i2pd_yggdrasil:${TAG_VERSION} \
. .