Marc Cataford
8c9aad6be3
Some checks failed
/ build-images (ubuntu-2204) (push) Has been cancelled
ci: tag image as latest
12 lines
168 B
Bash
Executable file
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"
|