mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 19:45:00 +02:00
* feat: build hook for dockerhub autobuilds * release new image * Create pre_build * Update push
12 lines
324 B
Bash
12 lines
324 B
Bash
#!/bin/bash
|
|
|
|
echo "=> Fetch unshallow origin"
|
|
git fetch --unshallow origin || true
|
|
|
|
echo "=> Tag image:"
|
|
docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:$(git describe --tags --abbrev=0 HEAD^)"
|
|
docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:$(git describe --tags --abbrev=0 HEAD)"
|
|
|
|
echo "=> Push images"
|
|
docker push "${DOCKER_REPO}"
|