diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-10-02 20:39:52 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-10-02 21:28:22 +0000 |
commit | 4afc00abcc3860a4077519ede689d2930e0bd4a8 (patch) | |
tree | 26b75c84c67d5c255fb3712da208c47c7704599e /.gitlab-ci.yml | |
parent | e653632812a768254feeb54c921adebe28ae797c (diff) | |
download | alpine_aports-4afc00abcc3860a4077519ede689d2930e0bd4a8.tar.bz2 alpine_aports-4afc00abcc3860a4077519ede689d2930e0bd4a8.tar.xz alpine_aports-4afc00abcc3860a4077519ede689d2930e0bd4a8.zip |
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.yml | 16 |
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: | |||
25 | image: alpinelinux/alpine-gitlab-ci:latest | 25 | image: alpinelinux/alpine-gitlab-ci:latest |
26 | script: | 26 | script: |
27 | - build.sh | 27 | - build.sh |
28 | - cp -ar ~/packages packages/ | ||
29 | - mkdir -p keys | ||
30 | - cp ~/.abuild/*.rsa.pub keys/ | ||
31 | artifacts: | ||
32 | paths: | ||
33 | - packages/ | ||
34 | - keys/ | ||
35 | expire_in: 1 day | ||
28 | only: | 36 | only: |
29 | - merge_requests | 37 | - merge_requests |
30 | 38 | ||
31 | build-x86_64: | 39 | build-x86_64: |
32 | extends: .build | 40 | extends: .build |
41 | artifacts: | ||
42 | name: MR${CI_MERGE_REQUEST_ID}_x86_64 | ||
33 | tags: | 43 | tags: |
34 | - docker-alpine | 44 | - docker-alpine |
35 | - ci-build | 45 | - ci-build |
@@ -40,6 +50,8 @@ build-x86: | |||
40 | image: | 50 | image: |
41 | name: alpinelinux/alpine-gitlab-ci:latest-x86 | 51 | name: alpinelinux/alpine-gitlab-ci:latest-x86 |
42 | entrypoint: ["linux32", "sh", "-c"] | 52 | entrypoint: ["linux32", "sh", "-c"] |
53 | artifacts: | ||
54 | name: MR${CI_MERGE_REQUEST_ID}_x86 | ||
43 | tags: | 55 | tags: |
44 | - docker-alpine | 56 | - docker-alpine |
45 | - ci-build | 57 | - ci-build |
@@ -47,6 +59,8 @@ build-x86: | |||
47 | 59 | ||
48 | build-s390x: | 60 | build-s390x: |
49 | extends: .build | 61 | extends: .build |
62 | artifacts: | ||
63 | name: MR${CI_MERGE_REQUEST_ID}_s390x | ||
50 | tags: | 64 | tags: |
51 | - docker-alpine | 65 | - docker-alpine |
52 | - ci-build | 66 | - ci-build |
@@ -54,6 +68,8 @@ build-s390x: | |||
54 | 68 | ||
55 | build-ppc64le: | 69 | build-ppc64le: |
56 | extends: .build | 70 | extends: .build |
71 | artifacts: | ||
72 | name: MR${CI_MERGE_REQUEST_ID}_ppc64le | ||
57 | tags: | 73 | tags: |
58 | - docker-alpine | 74 | - docker-alpine |
59 | - ci-build | 75 | - ci-build |