diff --git a/.gitlab-ci-psnc.yml b/.gitlab-ci-psnc.yml index efc1f65d2cc0084298dba859a23316873f0c61da..5f6243f67ab29ac6aa286e8f9e477f1ee6a2dbb8 100644 --- a/.gitlab-ci-psnc.yml +++ b/.gitlab-ci-psnc.yml @@ -1,9 +1,8 @@ --- 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