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
stages:
- build
- artifact-download
# Stage "build"
build-package:
stage: build
@ -23,9 +22,9 @@ build-package:
paths:
- ./builds/artifact
artifact_download:
stage: artifact-download
stage: build
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
- unzip artifacts.zip
- rm artifacts.zip