aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml41
1 files changed, 33 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 65dd7fbee11..6aef87e07c7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,32 @@
stages:
- - lint
- - build
+ - verify
+ - trigger
variables:
GIT_STRATEGY: clone
GIT_DEPTH: "500"
+# only rune pipelines for merge requests or when tags are pushed (for triggers)
+workflow:
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+ - if: $CI_COMMIT_TAG
+
lint:
- stage: lint
+ stage: verify
image: alpinelinux/apkbuild-lint-tools:latest
interruptible: true
script:
- lint
allow_failure: true
- only:
- - merge_requests
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
tags:
- docker-alpine
- x86_64
.build:
- stage: build
+ stage: verify
image: alpinelinux/alpine-gitlab-ci:latest
interruptible: true
script:
@@ -32,8 +38,8 @@ lint:
- logs/
expire_in: 1 day
when: always
- only:
- - merge_requests
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
build-x86_64:
extends: .build
@@ -106,3 +112,22 @@ build-armhf:
- docker-alpine
- ci-build
- armhf
+
+build-riscv64:
+ extends: .build
+ artifacts:
+ name: MR${CI_MERGE_REQUEST_ID}_riscv64
+ tags:
+ - docker-alpine
+ - ci-build
+ - riscv64
+
+trigger_build_image:
+ stage: trigger
+ rules:
+ - if: $CI_COMMIT_TAG
+ variables:
+ APORTS_TAG: $CI_COMMIT_TAG
+ trigger:
+ project: clandmeter/alpine-disk-image
+ branch: master