2023-01-06 14:48:41 +00:00
|
|
|
build-x86_64: &build
|
2023-03-28 17:56:51 +00:00
|
|
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest
|
2023-03-28 18:27:36 +00:00
|
|
|
cache:
|
|
|
|
key: repodest-x86_64
|
2023-05-03 01:23:33 +00:00
|
|
|
paths: [repodest/ptrcports/x86_64]
|
2023-03-28 18:40:44 +00:00
|
|
|
when: always
|
2023-01-06 14:48:41 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2023-05-03 01:23:33 +00:00
|
|
|
- CARCH=$(apk --print-arch)
|
2023-03-28 19:57:11 +00:00
|
|
|
- doas apk upgrade -Ua
|
2023-03-28 17:56:51 +00:00
|
|
|
- setup-ssh-key "$PRIVATE_KEY"
|
|
|
|
- setup-abuild-key "$PACKAGER_PRIVKEY" "alpine@ptrcnull.me-60610fa4.rsa"
|
2023-05-03 01:23:33 +00:00
|
|
|
- mkdir -p repodest/ptrcports/$CARCH
|
2023-05-03 00:35:30 +00:00
|
|
|
- rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g
|
2023-05-03 01:23:33 +00:00
|
|
|
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
|
|
|
|
repodest/ptrcports/$CARCH/
|
2023-03-28 17:56:51 +00:00
|
|
|
- buildrepo
|
2023-01-06 14:48:41 +00:00
|
|
|
--aports $PWD/..
|
|
|
|
--destdir $PWD/repodest
|
|
|
|
--purge
|
|
|
|
ptrcports
|
2023-04-16 05:10:48 +00:00
|
|
|
- |-
|
|
|
|
if [ "$CI_COMMIT_BRANCH" = "master" ]; then
|
2023-05-03 00:35:30 +00:00
|
|
|
rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g \
|
2023-05-03 01:23:33 +00:00
|
|
|
repodest/ptrcports/$CARCH/ \
|
|
|
|
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
|
2023-05-03 00:35:42 +00:00
|
|
|
else
|
|
|
|
echo "Current branch: $CI_COMMIT_BRANCH"
|
2023-04-16 05:10:48 +00:00
|
|
|
fi
|
2023-01-06 14:48:41 +00:00
|
|
|
|
|
|
|
build-aarch64:
|
|
|
|
<<: *build
|
2023-03-28 18:27:36 +00:00
|
|
|
cache:
|
|
|
|
key: repodest-aarch64
|
2023-05-03 01:23:33 +00:00
|
|
|
paths: [repodest/ptrcports/aarch64]
|
2023-03-28 18:40:44 +00:00
|
|
|
when: always
|
2023-03-28 17:56:51 +00:00
|
|
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm64v8:latest
|
2023-01-06 14:48:41 +00:00
|
|
|
|
|
|
|
# build-armhf:
|
|
|
|
# <<: *build
|
2023-03-28 18:27:36 +00:00
|
|
|
# cache:
|
|
|
|
# key: repodest-armhf
|
2023-05-03 01:23:33 +00:00
|
|
|
# paths: [repodest/ptrcports/armhf]
|
2023-03-28 18:40:44 +00:00
|
|
|
# when: always
|
2023-01-06 14:48:41 +00:00
|
|
|
# image: arm32v6/alpine:edge
|
|
|
|
|
|
|
|
# build-armv7:
|
|
|
|
# <<: *build
|
2023-03-28 18:27:36 +00:00
|
|
|
# cache:
|
|
|
|
# key: repodest-armv7
|
2023-05-03 01:23:33 +00:00
|
|
|
# paths: [repodest/ptrcports/armv7]
|
2023-03-28 18:40:44 +00:00
|
|
|
# when: always
|
2023-01-06 14:48:41 +00:00
|
|
|
# image: arm32v7/alpine:edge
|
|
|
|
|
|
|
|
# build-ppc64le:
|
|
|
|
# <<: *build
|
2023-03-28 18:27:36 +00:00
|
|
|
# cache:
|
|
|
|
# key: repodest-ppc64le
|
2023-05-03 01:23:33 +00:00
|
|
|
# paths: [repodest/ptrcports/ppc64le]
|
2023-03-28 18:40:44 +00:00
|
|
|
# when: always
|
2023-01-06 14:48:41 +00:00
|
|
|
# image: ppc64le/alpine:edge
|
|
|
|
|
2023-05-03 01:14:43 +00:00
|
|
|
build-riscv64:
|
|
|
|
<<: *build
|
|
|
|
cache:
|
|
|
|
key: repodest-riscv64
|
2023-05-03 01:23:33 +00:00
|
|
|
paths: [repodest/ptrcports/riscv64]
|
2023-05-03 01:14:43 +00:00
|
|
|
when: always
|
|
|
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/riscv64:latest
|
2023-01-06 14:48:41 +00:00
|
|
|
|
|
|
|
# build-s390x:
|
|
|
|
# <<: *build
|
2023-03-28 18:27:36 +00:00
|
|
|
# cache:
|
|
|
|
# key: repodest-s390x
|
2023-05-03 01:23:33 +00:00
|
|
|
# paths: [repodest/ptrcports/s390x]
|
2023-03-28 18:40:44 +00:00
|
|
|
# when: always
|
2023-01-06 14:48:41 +00:00
|
|
|
# image: s390x/alpine:edge
|
|
|
|
|
2023-05-03 01:14:43 +00:00
|
|
|
build-x86:
|
|
|
|
<<: *build
|
|
|
|
cache:
|
|
|
|
key: repodest-x86
|
2023-05-03 01:23:33 +00:00
|
|
|
paths: [repodest/ptrcports/x86]
|
2023-05-03 01:14:43 +00:00
|
|
|
when: always
|
|
|
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/i386:latest
|