Skip to content
Snippets Groups Projects
Commit 4afc00ab authored by Kevin Daudt's avatar Kevin Daudt :computer:
Browse files

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.
parent e6536328
No related branches found
No related tags found
No related merge requests found
...@@ -25,11 +25,21 @@ lint: ...@@ -25,11 +25,21 @@ lint:
image: alpinelinux/alpine-gitlab-ci:latest image: alpinelinux/alpine-gitlab-ci:latest
script: script:
- build.sh - build.sh
- cp -ar ~/packages packages/
- mkdir -p keys
- cp ~/.abuild/*.rsa.pub keys/
artifacts:
paths:
- packages/
- keys/
expire_in: 1 day
only: only:
- merge_requests - merge_requests
build-x86_64: build-x86_64:
extends: .build extends: .build
artifacts:
name: MR${CI_MERGE_REQUEST_ID}_x86_64
tags: tags:
- docker-alpine - docker-alpine
- ci-build - ci-build
...@@ -40,6 +50,8 @@ build-x86: ...@@ -40,6 +50,8 @@ build-x86:
image: image:
name: alpinelinux/alpine-gitlab-ci:latest-x86 name: alpinelinux/alpine-gitlab-ci:latest-x86
entrypoint: ["linux32", "sh", "-c"] entrypoint: ["linux32", "sh", "-c"]
artifacts:
name: MR${CI_MERGE_REQUEST_ID}_x86
tags: tags:
- docker-alpine - docker-alpine
- ci-build - ci-build
...@@ -47,6 +59,8 @@ build-x86: ...@@ -47,6 +59,8 @@ build-x86:
build-s390x: build-s390x:
extends: .build extends: .build
artifacts:
name: MR${CI_MERGE_REQUEST_ID}_s390x
tags: tags:
- docker-alpine - docker-alpine
- ci-build - ci-build
...@@ -54,6 +68,8 @@ build-s390x: ...@@ -54,6 +68,8 @@ build-s390x:
build-ppc64le: build-ppc64le:
extends: .build extends: .build
artifacts:
name: MR${CI_MERGE_REQUEST_ID}_ppc64le
tags: tags:
- docker-alpine - docker-alpine
- ci-build - ci-build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment