runner-images/script/get-tag.sh
Marc Cataford 8c9aad6be3
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:33:16 -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"