diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f585ff9352..6aef87e07c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,34 @@ stages: - - lint - - build + - verify + - trigger variables: GIT_STRATEGY: clone GIT_DEPTH: "500" -default: - # Make sure master points to the correct upstream commit - before_script: - - > - git fetch -nq $CI_MERGE_REQUEST_PROJECT_URL - +refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME +# 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: - - changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint + - 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: - build.sh artifacts: @@ -37,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 @@ -111,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 |