meta: only download/upload arch-specific files
This commit is contained in:
parent
076e7842f1
commit
0e1bbf78d4
1 changed files with 14 additions and 13 deletions
|
@ -2,17 +2,18 @@ build-x86_64: &build
|
||||||
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/x86_64:latest
|
||||||
cache:
|
cache:
|
||||||
key: repodest-x86_64
|
key: repodest-x86_64
|
||||||
paths: [repodest/]
|
paths: [repodest/ptrcports/x86_64]
|
||||||
when: always
|
when: always
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
- CARCH=$(apk --print-arch)
|
||||||
- doas apk upgrade -Ua
|
- doas apk upgrade -Ua
|
||||||
- setup-ssh-key "$PRIVATE_KEY"
|
- setup-ssh-key "$PRIVATE_KEY"
|
||||||
- setup-abuild-key "$PACKAGER_PRIVKEY" "alpine@ptrcnull.me-60610fa4.rsa"
|
- setup-abuild-key "$PACKAGER_PRIVKEY" "alpine@ptrcnull.me-60610fa4.rsa"
|
||||||
- mkdir -p repodest
|
- mkdir -p repodest/ptrcports/$CARCH
|
||||||
- rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g
|
- rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g
|
||||||
buildozer@repo.ptrc.gay:repodest/
|
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
|
||||||
repodest/
|
repodest/ptrcports/$CARCH/
|
||||||
- buildrepo
|
- buildrepo
|
||||||
--aports $PWD/..
|
--aports $PWD/..
|
||||||
--destdir $PWD/repodest
|
--destdir $PWD/repodest
|
||||||
|
@ -21,8 +22,8 @@ build-x86_64: &build
|
||||||
- |-
|
- |-
|
||||||
if [ "$CI_COMMIT_BRANCH" = "master" ]; then
|
if [ "$CI_COMMIT_BRANCH" = "master" ]; then
|
||||||
rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g \
|
rsync --archive --update --hard-links --delete --delete-after --delay-updates --itemize-changes --no-o --no-g \
|
||||||
repodest/ \
|
repodest/ptrcports/$CARCH/ \
|
||||||
buildozer@repo.ptrc.gay:repodest/
|
buildozer@repo.ptrc.gay:repodest/ptrcports/$CARCH/
|
||||||
else
|
else
|
||||||
echo "Current branch: $CI_COMMIT_BRANCH"
|
echo "Current branch: $CI_COMMIT_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
@ -31,7 +32,7 @@ build-aarch64:
|
||||||
<<: *build
|
<<: *build
|
||||||
cache:
|
cache:
|
||||||
key: repodest-aarch64
|
key: repodest-aarch64
|
||||||
paths: [repodest/]
|
paths: [repodest/ptrcports/aarch64]
|
||||||
when: always
|
when: always
|
||||||
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm64v8:latest
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/arm64v8:latest
|
||||||
|
|
||||||
|
@ -39,7 +40,7 @@ build-aarch64:
|
||||||
# <<: *build
|
# <<: *build
|
||||||
# cache:
|
# cache:
|
||||||
# key: repodest-armhf
|
# key: repodest-armhf
|
||||||
# paths: [repodest/]
|
# paths: [repodest/ptrcports/armhf]
|
||||||
# when: always
|
# when: always
|
||||||
# image: arm32v6/alpine:edge
|
# image: arm32v6/alpine:edge
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ build-aarch64:
|
||||||
# <<: *build
|
# <<: *build
|
||||||
# cache:
|
# cache:
|
||||||
# key: repodest-armv7
|
# key: repodest-armv7
|
||||||
# paths: [repodest/]
|
# paths: [repodest/ptrcports/armv7]
|
||||||
# when: always
|
# when: always
|
||||||
# image: arm32v7/alpine:edge
|
# image: arm32v7/alpine:edge
|
||||||
|
|
||||||
|
@ -55,7 +56,7 @@ build-aarch64:
|
||||||
# <<: *build
|
# <<: *build
|
||||||
# cache:
|
# cache:
|
||||||
# key: repodest-ppc64le
|
# key: repodest-ppc64le
|
||||||
# paths: [repodest/]
|
# paths: [repodest/ptrcports/ppc64le]
|
||||||
# when: always
|
# when: always
|
||||||
# image: ppc64le/alpine:edge
|
# image: ppc64le/alpine:edge
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ build-riscv64:
|
||||||
<<: *build
|
<<: *build
|
||||||
cache:
|
cache:
|
||||||
key: repodest-riscv64
|
key: repodest-riscv64
|
||||||
paths: [repodest/]
|
paths: [repodest/ptrcports/riscv64]
|
||||||
when: always
|
when: always
|
||||||
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/riscv64:latest
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/riscv64:latest
|
||||||
|
|
||||||
|
@ -71,7 +72,7 @@ build-riscv64:
|
||||||
# <<: *build
|
# <<: *build
|
||||||
# cache:
|
# cache:
|
||||||
# key: repodest-s390x
|
# key: repodest-s390x
|
||||||
# paths: [repodest/]
|
# paths: [repodest/ptrcports/s390x]
|
||||||
# when: always
|
# when: always
|
||||||
# image: s390x/alpine:edge
|
# image: s390x/alpine:edge
|
||||||
|
|
||||||
|
@ -79,6 +80,6 @@ build-x86:
|
||||||
<<: *build
|
<<: *build
|
||||||
cache:
|
cache:
|
||||||
key: repodest-x86
|
key: repodest-x86
|
||||||
paths: [repodest/]
|
paths: [repodest/ptrcports/x86]
|
||||||
when: always
|
when: always
|
||||||
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/i386:latest
|
image: registry.git.ptrc.gay/ptrcnull/ptrcports-builder/i386:latest
|
||||||
|
|
Loading…
Reference in a new issue