80 lines
1.4 KiB
YAML
80 lines
1.4 KiB
YAML
stages:
|
|
- verify
|
|
- build
|
|
- deploy
|
|
|
|
variables:
|
|
GIT_STRATEGY: clone
|
|
GIT_DEPTH: "500"
|
|
|
|
lint:
|
|
stage: verify
|
|
interruptible: true
|
|
script:
|
|
- |
|
|
sudo apk add shellcheck atools sudo abuild
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
lint
|
|
allow_failure: true
|
|
only:
|
|
- merge_requests
|
|
tags:
|
|
- apk-v3.18-x86_64
|
|
|
|
.build:
|
|
stage: build
|
|
interruptible: true
|
|
script:
|
|
- |
|
|
sudo apk add alpine-sdk lua-aports sudo
|
|
sudo addgroup $USER abuild
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
sudo -Eu $USER build.sh
|
|
artifacts:
|
|
paths:
|
|
- packages/
|
|
- keys/
|
|
- logs/
|
|
expire_in: 7 days
|
|
only:
|
|
- merge_requests
|
|
|
|
build-v3.18:
|
|
extends: .build
|
|
when: always
|
|
variables:
|
|
CI_ALPINE_TARGET_RELEASE: v3.18
|
|
tags:
|
|
- apk-$CI_ALPINE_TARGET_RELEASE-x86_64
|
|
|
|
build-v3.19:
|
|
extends: .build
|
|
when: always
|
|
variables:
|
|
CI_ALPINE_TARGET_RELEASE: v3.19
|
|
tags:
|
|
- apk-$CI_ALPINE_TARGET_RELEASE-x86_64
|
|
|
|
build-edge:
|
|
extends: .build
|
|
when: always
|
|
variables:
|
|
CI_ALPINE_TARGET_RELEASE: edge
|
|
tags:
|
|
- apk-$CI_ALPINE_TARGET_RELEASE-x86_64
|
|
|
|
|
|
push:
|
|
interruptible: true
|
|
stage: deploy
|
|
script:
|
|
- |
|
|
sudo apk add abuild git-lfs findutils
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
push.sh
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
when: manual
|
|
tags:
|
|
- repo
|
|
|