ptrcports/.gitlab-ci.yml

82 lines
1.9 KiB
YAML

build-x86_64: &build
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest
cache:
key: repodest-x86_64
paths: [repodest/]
when: always
stage: build
script:
- doas apk upgrade -Ua
- setup-ssh-key "$PRIVATE_KEY"
- setup-abuild-key "$PACKAGER_PRIVKEY" "alpine@ptrcnull.me-60610fa4.rsa"
- mkdir -p repodest
- rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g
buildozer@repo.ptrc.gay:repodest/
repodest/
- 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/ \
buildozer@repo.ptrc.gay:repodest/
fi
build-aarch64:
<<: *build
cache:
key: repodest-aarch64
paths: [repodest/]
when: always
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm64v8:latest
# build-armhf:
# <<: *build
# cache:
# key: repodest-armhf
# paths: [repodest/]
# when: always
# image: arm32v6/alpine:edge
# build-armv7:
# <<: *build
# cache:
# key: repodest-armv7
# paths: [repodest/]
# when: always
# image: arm32v7/alpine:edge
# build-ppc64le:
# <<: *build
# cache:
# key: repodest-ppc64le
# paths: [repodest/]
# when: always
# image: ppc64le/alpine:edge
# build-riscv64:
# <<: *build
# cache:
# key: repodest-riscv64
# paths: [repodest/]
# when: always
# image: riscv64/alpine:edge
# build-s390x:
# <<: *build
# cache:
# key: repodest-s390x
# paths: [repodest/]
# when: always
# image: s390x/alpine:edge
# build-x86:
# <<: *build
# cache:
# key: repodest-x86
# paths: [repodest/]
# when: always
# image: i386/alpine:edge