ptrcports/.gitlab-ci.yml

85 lines
2.4 KiB
YAML

build-x86_64: &build
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest
cache:
key: repodest-x86_64
paths: [repodest/ptrcports/x86_64]
when: always
stage: build
script:
- CARCH=$(apk --print-arch)
- doas apk upgrade -Ua
- setup-ssh-key "$PRIVATE_KEY"
- setup-abuild-key "$PACKAGER_PRIVKEY" "alpine@ptrcnull.me-60610fa4.rsa"
- mkdir -p repodest/ptrcports/$CARCH
- rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
repodest/ptrcports/$CARCH/
- buildrepo
--aports $PWD/..
--destdir $PWD/repodest
--purge
ptrcports
- |-
if [ "$CI_COMMIT_BRANCH" = "master" ]; then
rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g \
repodest/ptrcports/$CARCH/ \
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
else
echo "Current branch: $CI_COMMIT_BRANCH"
fi
build-aarch64:
<<: *build
cache:
key: repodest-aarch64
paths: [repodest/ptrcports/aarch64]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm64v8:latest
build-armhf:
<<: *build
cache:
key: repodest-armhf
paths: [repodest/ptrcports/armhf]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm32v6:latest
build-armv7:
<<: *build
cache:
key: repodest-armv7
paths: [repodest/ptrcports/armv7]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm32v7:latest
build-ppc64le:
<<: *build
cache:
key: repodest-ppc64le
paths: [repodest/ptrcports/ppc64le]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/ppc64le:latest
build-riscv64:
<<: *build
cache:
key: repodest-riscv64
paths: [repodest/ptrcports/riscv64]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/riscv64:latest
build-s390x:
<<: *build
cache:
key: repodest-s390x
paths: [repodest/ptrcports/s390x]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/s390x:latest
build-x86:
<<: *build
cache:
key: repodest-x86
paths: [repodest/ptrcports/x86]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/i386:latest