fix
This commit is contained in:
@@ -35,12 +35,17 @@ spec:
|
||||
#!/usr/bin/env ash
|
||||
git switch $(params.branch)
|
||||
ShortSha=$(/tools/dotnet-gitversion . /showvariable ShortSha)
|
||||
echo -n "ShortSha: "
|
||||
echo -n "${ShortSha}" | tee $(results.shortSHA.path)
|
||||
echo
|
||||
FullSemVer=$(/tools/dotnet-gitversion . /showvariable FullSemVer)
|
||||
echo "FullSemVer: "
|
||||
echo -n "${FullSemVer}" | tee $(results.gitVersion.path)
|
||||
echo
|
||||
# normalize a bit because
|
||||
# image tags can only contain `abcdefghijklmnopqrstuvwxyz0123456789_-.ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
||||
packageVersion=$(echo -n $FullSemVer | sed 's/[^-._0-9A-Za-z]/-/g')
|
||||
packageVersion=$(echo -n $FullSemVer | sed 's/[^-._0-9A-Za-z]/-/g'|sed 's/-/+build/')
|
||||
echo -n "packageVersion: "
|
||||
echo -n "${packageVersion}" | tee $(results.packageVersion.path)
|
||||
workspaces:
|
||||
- name: source
|
||||
|
||||
Reference in New Issue
Block a user