13 lines
332 B
Bash
Executable File
13 lines
332 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
|
|| git symbolic-ref --short -q HEAD \
|
|
|| git rev-parse --short HEAD)
|
|
|
|
echo "Publishing artifact ($VERSION)..."
|
|
./gradlew -Pversion=$VERSION publish
|
|
|
|
echo "Publishing docker container ($VERSION)..."
|
|
./build/docker/publish.sh
|