2022-08-14 19:52:11 +00:00
|
|
|
stages:
|
|
|
|
- verify
|
2023-02-09 22:56:28 +00:00
|
|
|
- build
|
|
|
|
- deploy
|
2022-08-14 19:52:11 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: clone
|
|
|
|
GIT_DEPTH: "500"
|
|
|
|
|
|
|
|
lint:
|
|
|
|
stage: verify
|
|
|
|
interruptible: true
|
|
|
|
script:
|
2023-02-09 22:56:28 +00:00
|
|
|
- |
|
2023-08-13 04:27:00 +00:00
|
|
|
sudo apk add shellcheck atools sudo abuild
|
2023-02-09 22:56:28 +00:00
|
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
|
|
lint
|
2022-08-14 19:52:11 +00:00
|
|
|
allow_failure: true
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
tags:
|
2023-08-13 04:27:00 +00:00
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
2022-08-14 19:52:11 +00:00
|
|
|
|
2023-04-23 20:14:13 +00:00
|
|
|
.build:
|
2023-02-09 22:56:28 +00:00
|
|
|
stage: build
|
2022-08-14 19:52:11 +00:00
|
|
|
interruptible: true
|
|
|
|
script:
|
2023-02-09 22:56:28 +00:00
|
|
|
- |
|
2023-08-13 04:27:00 +00:00
|
|
|
sudo apk add alpine-sdk lua-aports sudo
|
|
|
|
sudo addgroup $USER abuild
|
2023-02-09 22:56:28 +00:00
|
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
|
|
sudo -Eu $USER build.sh
|
2022-08-14 19:52:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- packages/
|
|
|
|
- keys/
|
|
|
|
- logs/
|
2023-02-09 22:56:28 +00:00
|
|
|
expire_in: 7 days
|
2022-08-14 19:52:11 +00:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
|
2023-04-23 20:14:13 +00:00
|
|
|
.cross:
|
|
|
|
stage: build
|
|
|
|
interruptible: true
|
|
|
|
script:
|
|
|
|
- |
|
2023-08-13 04:27:00 +00:00
|
|
|
sudo apk add alpine-sdk lua-aports sudo gzip xz qemu-$CI_QEMU_TARGET_ARCH
|
|
|
|
sudo addgroup $USER abuild
|
2023-04-23 20:14:13 +00:00
|
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
2023-04-26 04:02:11 +00:00
|
|
|
build-rootfs.sh alpine${CI_MERGE_REQUEST_TARGET_BRANCH_NAME/v} $CI_ALPINE_TARGET_ARCH --rootfsdir $HOME/sysroot-$CI_ALPINE_TARGET_ARCH
|
2023-04-23 20:14:13 +00:00
|
|
|
cp /etc/apk/repositories $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/.
|
|
|
|
sudo -Eu $USER CHOST=$CI_TARGET_ALPINE_ARCH build.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- packages/
|
|
|
|
- keys/
|
|
|
|
- logs/
|
|
|
|
expire_in: 7 days
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
|
|
|
|
build-x86_64:
|
|
|
|
extends: .build
|
2023-08-13 04:27:00 +00:00
|
|
|
when: always
|
|
|
|
tags:
|
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
|
|
|
|
2023-11-24 18:35:34 +00:00
|
|
|
build-aarch64:
|
|
|
|
extends: .build
|
|
|
|
when: always
|
|
|
|
tags:
|
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-aarch64
|
|
|
|
|
2023-08-13 04:27:00 +00:00
|
|
|
build-ppc64le:
|
|
|
|
extends: .build
|
|
|
|
when: manual
|
|
|
|
tags:
|
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-ppc64le
|
|
|
|
|
|
|
|
build-s390x:
|
|
|
|
extends: .build
|
|
|
|
when: manual
|
|
|
|
tags:
|
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-s390x
|
2023-04-23 20:14:13 +00:00
|
|
|
|
|
|
|
build-armv7:
|
|
|
|
extends: .cross
|
2023-08-13 04:27:00 +00:00
|
|
|
when: manual
|
|
|
|
tags:
|
|
|
|
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
2023-04-23 20:14:13 +00:00
|
|
|
variables:
|
|
|
|
CI_ALPINE_TARGET_ARCH: armv7
|
|
|
|
CI_QEMU_TARGET_ARCH: arm
|
|
|
|
|
2023-02-09 22:56:28 +00:00
|
|
|
push:
|
|
|
|
interruptible: true
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- |
|
2023-04-23 20:14:13 +00:00
|
|
|
sudo apk add abuild git-lfs findutils
|
2023-02-09 22:56:28 +00:00
|
|
|
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
|
|
push.sh
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
when: manual
|
|
|
|
tags:
|
2023-04-26 04:02:11 +00:00
|
|
|
- repo
|