Skip to content

Commit

Permalink
add v prefix to version
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 21, 2024
1 parent fa2470a commit 033feb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/container-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
docker build --cache-from type=gha --cache-to type=gha,mode=max -t "$image_name" -f Dockerfile.joex .
docker push "$image_name"
full_version="$(docker run --rm --entrypoint cat "$image_name" /opt/docspell-joex/version)"
full_version_name="${repo}:${full_version}"
full_version_name="${repo}:v${full_version}"
docker tag "$image_name" "$full_version_name"
docker push "$full_version_name"
minor_version="$(cut -d'.' -f1 <<< "$full_version").$(cut -d'.' -f2 <<< "$full_version")"
minor_version_name="${repo}:${minor_version}"
minor_version_name="${repo}:v${minor_version}"
docker tag "$image_name" "$minor_version_name"
docker push "$minor_version_name"

0 comments on commit 033feb1

Please sign in to comment.