[add] image tag corresponds git tag
This commit is contained in:
@@ -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} \
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user