runner-images/script/get-tag.sh
Marc Cataford 530af83f55
Some checks failed
/ build-images (ubuntu-2204) (push) Has been cancelled
feat: set up ubuntu base image build
ci: tag image as latest
2024-07-20 16:19:08 -04:00

12 lines
168 B
Bash
Executable file

#!/bin/bash
has_changes=$(git status --short)
head_sha=$(git rev-parse --short HEAD)
tag=$head_sha
if [[ -n $has_changes ]]; then
tag="$tag-dev"
fi
echo "$tag"