aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-10-02 20:39:52 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-10-02 21:28:22 +0000
commit4afc00abcc3860a4077519ede689d2930e0bd4a8 (patch)
tree26b75c84c67d5c255fb3712da208c47c7704599e /.gitlab-ci.yml
parente653632812a768254feeb54c921adebe28ae797c (diff)
downloadaports-4afc00abcc3860a4077519ede689d2930e0bd4a8.tar.gz
aports-4afc00abcc3860a4077519ede689d2930e0bd4a8.tar.bz2
aports-4afc00abcc3860a4077519ede689d2930e0bd4a8.tar.xz
gitlab-ci: upload built packages as artifacts
gitlab allows us to define artifacts that will be uploaded to gitlab and available to download for some time. Specify that the built packages should be uploaded to gitlab, along with the public key.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9382d12472..abb1dcf5c1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,11 +25,21 @@ lint:
image: alpinelinux/alpine-gitlab-ci:latest
script:
- build.sh
+ - cp -ar ~/packages packages/
+ - mkdir -p keys
+ - cp ~/.abuild/*.rsa.pub keys/
+ artifacts:
+ paths:
+ - packages/
+ - keys/
+ expire_in: 1 day
only:
- merge_requests
build-x86_64:
extends: .build
+ artifacts:
+ name: MR${CI_MERGE_REQUEST_ID}_x86_64
tags:
- docker-alpine
- ci-build
@@ -40,6 +50,8 @@ build-x86:
image:
name: alpinelinux/alpine-gitlab-ci:latest-x86
entrypoint: ["linux32", "sh", "-c"]
+ artifacts:
+ name: MR${CI_MERGE_REQUEST_ID}_x86
tags:
- docker-alpine
- ci-build
@@ -47,6 +59,8 @@ build-x86:
build-s390x:
extends: .build
+ artifacts:
+ name: MR${CI_MERGE_REQUEST_ID}_s390x
tags:
- docker-alpine
- ci-build
@@ -54,6 +68,8 @@ build-s390x:
build-ppc64le:
extends: .build
+ artifacts:
+ name: MR${CI_MERGE_REQUEST_ID}_ppc64le
tags:
- docker-alpine
- ci-build