Skip to content
Snippets Groups Projects
Unverified Commit fe93c054 authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

fix tag name

parent 875023aa
No related branches found
No related tags found
No related merge requests found
Pipeline #29618 passed
...@@ -9,7 +9,6 @@ variables: ...@@ -9,7 +9,6 @@ variables:
ARTIFACTORY_BASE_URL: https://artifactory.software.geant.org/artifactory/acme-downloader ARTIFACTORY_BASE_URL: https://artifactory.software.geant.org/artifactory/acme-downloader
ARTIFACTORY_METADATA_URL: https://artifactory.software.geant.org/artifactory/api/storage/acme-downloader ARTIFACTORY_METADATA_URL: https://artifactory.software.geant.org/artifactory/api/storage/acme-downloader
ARTIFACT_NAME: acme-downloader ARTIFACT_NAME: acme-downloader
ARTIFACT_VERSION: ${CI_COMMIT_TAG:1}
sonarqube: sonarqube:
image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION} image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
...@@ -39,7 +38,7 @@ upload_linux_amd64_binary: ...@@ -39,7 +38,7 @@ upload_linux_amd64_binary:
script: script:
- ./build.sh --os=linux --arch=amd64 --version=$CI_COMMIT_TAG --upx - ./build.sh --os=linux --arch=amd64 --version=$CI_COMMIT_TAG --upx
- 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT -T ./$ARTIFACT_NAME ${ARTIFACTORY_BASE_URL}/${ARTIFACT_NAME}_linux_amd64' - 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT -T ./$ARTIFACT_NAME ${ARTIFACTORY_BASE_URL}/${ARTIFACT_NAME}_linux_amd64'
- 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT "${ARTIFACTORY_METADATA_URL}/${ARTIFACT_NAME}_linux_amd64?properties=version=${ARTIFACT_VERSION}"' - 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT "${ARTIFACTORY_METADATA_URL}/${ARTIFACT_NAME}_linux_amd64?properties=version=${CI_COMMIT_TAG:1}"'
tags: tags:
- acme - acme
...@@ -50,6 +49,6 @@ upload_windows_amd64_binary: ...@@ -50,6 +49,6 @@ upload_windows_amd64_binary:
script: script:
- ./build.sh --os=windows --arch=amd64 --version=$CI_COMMIT_TAG --upx - ./build.sh --os=windows --arch=amd64 --version=$CI_COMMIT_TAG --upx
- 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT -T ./${ARTIFACT_NAME}.exe ${ARTIFACTORY_BASE_URL}/${ARTIFACT_NAME}_windows_amd64.exe' - 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT -T ./${ARTIFACT_NAME}.exe ${ARTIFACTORY_BASE_URL}/${ARTIFACT_NAME}_windows_amd64.exe'
- 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT "${ARTIFACTORY_METADATA_URL}/${ARTIFACT_NAME}_windows_amd64.exe?properties=version=${ARTIFACT_VERSION}"' - 'curl -sSf -H "X-JFrog-Art-Api:${ARTIFACTORY_TOKEN}" -X PUT "${ARTIFACTORY_METADATA_URL}/${ARTIFACT_NAME}_windows_amd64.exe?properties=version=${CI_COMMIT_TAG:1}"'
tags: tags:
- acme - acme
...@@ -435,7 +435,7 @@ Options: ...@@ -435,7 +435,7 @@ Options:
upstreamVersion := fmt.Sprintf(jsonartifact.Properties.Version[0]) upstreamVersion := fmt.Sprintf(jsonartifact.Properties.Version[0])
localVersion, _ := version.NewVersion(appVersion) localVersion, _ := version.NewVersion(appVersion)
remoteVersion, _ := version.NewVersion(upstreamVersion) remoteVersion, _ := version.NewVersion(upstreamVersion)
if localVersion.GreaterThan(remoteVersion) { if localVersion.LessThan(remoteVersion) {
fmt.Printf("local version (%s) is older than upstream version (%s)\n", localVersion, remoteVersion) fmt.Printf("local version (%s) is older than upstream version (%s)\n", localVersion, remoteVersion)
fmt.Printf("please use --update to install the new version\n") fmt.Printf("please use --update to install the new version\n")
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment