Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Acme Downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Geant DevOps
Acme Downloader
Commits
fe93c054
Unverified
Commit
fe93c054
authored
Jun 3, 2021
by
Massimiliano Adamo
Browse files
Options
Downloads
Patches
Plain Diff
fix tag name
parent
875023aa
Branches
Branches containing commit
Tags
v1.0.6
Tags containing commit
No related merge requests found
Pipeline
#29618
passed
Jun 3, 2021
Stage: upload_linux_shell
Stage: upload_linux_amd64_binary
Stage: upload_windows_amd64_binary
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci-psnc.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci-psnc.yml
main.go
+1
-1
1 addition, 1 deletion
main.go
with
3 additions
and
4 deletions
.gitlab-ci-psnc.yml
+
2
−
3
View file @
fe93c054
...
@@ -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
This diff is collapsed.
Click to expand it.
main.go
+
1
−
1
View file @
fe93c054
...
@@ -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
.
Greater
Than
(
remoteVersion
)
{
if
localVersion
.
Less
Than
(
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
{
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment