This commit is contained in:
Ivan Fonarev 2023-10-28 00:21:12 +03:00
parent a1ad9789b0
commit 5bf12796af

View file

@ -6,7 +6,6 @@ before_script:
# Defines stages which are to be executed # Defines stages which are to be executed
stages: stages:
- build - build
- artifact-download
# Stage "build" # Stage "build"
build-package: build-package:
stage: build stage: build
@ -23,9 +22,9 @@ build-package:
paths: paths:
- ./builds/artifact - ./builds/artifact
artifact_download: artifact_download:
stage: artifact-download stage: build
script: script:
- 'curl --location --output ~/builds/downloaded_artifacts/artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=build-package"' - 'curl --location --header "PRIVATE-TOKEN: glpat-FxQCwwpab9YkmNHWPVXY" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=build-package&job_token=$CI_JOB_TOKEN"
- cd ~/builds/downloaded_artifacts - cd ~/builds/downloaded_artifacts
- unzip artifacts.zip - unzip artifacts.zip
- rm artifacts.zip - rm artifacts.zip