Update 2_Image_Building: Add command to update hyrax/deploy_info.json, use... authored by Pascal Ernster's avatar Pascal Ernster
Update 2_Image_Building: Add command to update hyrax/deploy_info.json, use timestamp from hyrax/deploy_info.json for DOCKER_IMAGE_TAG
......@@ -39,9 +39,10 @@ git pull
git apply example/path/to/example_changes.patch
```
Generate docker image tag string
Update `hyrax/deploy_info.json` and generate docker image tag string
```shell
export DOCKER_IMAGE_TAG="$(git describe --always --long --tags)_$(date --utc --iso-8601=seconds | sed 's|\+00:00$|UTC|g;s|:|-|g')"
./hyrax/deploy_info.sh
export DOCKER_IMAGE_TAG="$(git describe --always --long --tags)_$(jq -r '.last_deployed' < hyrax/deploy_info.json | sed 's|\+00:00$|UTC|g;s|:|-|g')"
# Check the docker image tag
echo "${DOCKER_IMAGE_TAG}"
......
......