Skip to content

Commit

Permalink
Tag patch version number too. Fixes issue #15
Browse files Browse the repository at this point in the history
  • Loading branch information
mschering committed Oct 3, 2023
1 parent 3dedb58 commit 1f526a3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion push.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash
set -e


CONTENT=`cat Dockerfile`
REGEX='VERSION=([0-9]+)\.([0-9]+)\.([0-9]+)';

[[ $CONTENT =~ $REGEX ]]

major=${BASH_REMATCH[1]};
minor=${BASH_REMATCH[2]};
patch=${BASH_REMATCH[3]};

docker login
docker buildx build --push --platform linux/amd64,linux/arm64 -t intermesh/groupoffice:6.7 .
docker buildx build --push --platform linux/amd64,linux/arm64 -t intermesh/groupoffice:$major.$minor -t intermesh/groupoffice $major.$minor.$patch .

0 comments on commit 1f526a3

Please sign in to comment.