From 0a7975f6ab5ab8642a3d885bd84a489487392936 Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <massimiliano.adamo@geant.org> Date: Mon, 31 May 2021 20:34:07 +0200 Subject: [PATCH] create tag upload --- .gitlab-ci-psnc.yml | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/.gitlab-ci-psnc.yml b/.gitlab-ci-psnc.yml index efc1f65..5f6243f 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 -- GitLab