@@ 1,7 1,7 @@
-platform: linux/amd64
pipeline:
- build:
+ build-amd64:
image: alpine:edge
+ group: build
commands:
- apk update
- apk add fd bash abuild dateutils
@@ 12,3 12,20 @@ pipeline:
- export ABUILD_FLAGS="$ABUILD_FLAGS -F"
- ./build.sh all
secrets: [ package_signature ]
+ when:
+ platform: linux/amd64
+ build-arm64:
+ group: build
+ image: alpine:edge
+ commands:
+ - apk update
+ - apk add fd bash abuild dateutils
+ - mkdir -p $HOME/.abuild
+ - echo "$PACKAGE_SIGNATURE" > $CI_WORKSPACE/comcloudway@ccw.icu.rsa
+ - echo "PACKAGER_PRIVKEY=$CI_WORKSPACE/comcloudway@ccw.icu.rsa" >> /root/.abuild/abuild.conf
+ - cp "$CI_WORKSPACE/comcloudway@ccw.icu.rsa.pub" /etc/apk/keys/
+ - export ABUILD_FLAGS="$ABUILD_FLAGS -F"
+ - ./build.sh all
+ secrets: [ package_signature ]
+ when:
+ platform: linux/arm64