- Start server passing a data dir with
./repository <data_dir>
- Copy
artifacts
binary on the server wheregitlab-runner
is installed - For shell executor just add
artifacts
binary to thePATH
env variable - For docker executor pass
artifacts
binary to every docker container:[runners.docker] volumes = ["/usr/local/bin/artifacts:/usr/local/bin/artifacts"]
- Define
ARTIFACTS_SUBSET_ID
andARTIFACTS_REPOSITORIES
variables in a build pipelinevariables: ARTIFACTS_SUBSET_ID: "$CI_PROJECT_PATH-$CI_PIPELINE_ID" ARTIFACTS_REPOSITORIES: "http://repository1:8080, http://repository2:8080, http://repository3:8080"
- Use
stages: - push - pull push: image: golang:1.19 stage: push tags: - docker script: - artifacts push 'files/*.txt' pull: image: golang:1.19 stage: pull tags: - docker script: - artifacts pull 'files/*.txt'