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

create tag upload

parent 00d9f433
Branches
Tags
No related merge requests found
---
stages:
- sonarqube
- upload_linux_artifact
# - upload_windows_artifact
# - upload_shell_script
- upload_linux_binary
sonarqube:
image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
stage: sonarqube
......@@ -15,29 +14,13 @@ sonarqube:
- /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME"
tags:
- sonarqube
upload_linux_artifact:
stage: upload_linux_artifact
upload_linux_binary:
stage: upload_linux_binary
only:
- artifacts
script: ./build.sh --os=linux --arch=amd64 --upx
artifacts:
paths:
- acme-downloader
- tags
script:
- ./build.sh --os=linux --arch=amd64 --upx
- 'curl --header "JOB-TOKEN: $PROJECT_ACCESS_TOKEN" --upload-file $CI_PROJECT_NAME "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}"'
tags:
- visnu_shell
# upload_windows_artifact:
# stage: upload_windows_artifact
# script: ./build.sh --os=windows --arch=amd64 --upx
# artifacts:
# paths:
# - acme-downloader.exe
# tags:
# - visnu_shell
# upload_shell_script:
# stage: upload_shell_script
# script: /usr/bin/true
# artifacts:
# paths:
# - acme-downloader.sh
# tags:
# - visnu_shell
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment