ci: update creation of tags (#19)

Update creation of docker tags to only tag actual releases with the
`:latest` tag. Builds on the main branch are now tagged with a `:nightly`
tag.
This commit is contained in:
Hector
2022-02-12 17:31:01 +00:00
parent 191dda3b9f
commit 05f236902a
3 changed files with 32 additions and 14 deletions

View File

@ -32,5 +32,8 @@ build/docker:
docker/build/latest:
docker build -t registry.gitlab.com/hectorjsmith/fail2ban-prometheus-exporter:latest .
docker/build/nightly:
docker build -t registry.gitlab.com/hectorjsmith/fail2ban-prometheus-exporter:nightly .
docker/build/tag:
docker build -t registry.gitlab.com/hectorjsmith/fail2ban-prometheus-exporter:$(shell git describe --tags) .