142 lines
4.6 KiB
YAML
142 lines
4.6 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
clone:
|
|
git:
|
|
image: plugins/git
|
|
recursive: true
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule status
|
|
- git submodule update --init --recursive
|
|
|
|
|
|
- name: google-chrome
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: srv-bin
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: wps-office
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: balena-etcher
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: ttyd
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: guestfs-tools
|
|
image: registry.186526.xyz/docker-makepkg:next
|
|
failure: ignore
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion
|
|
environment:
|
|
DOCKER_MAKEPKG_PATH: /drone/src/$DRONE_STEP_NAME
|
|
DOCKER_OUT_PATH: /oblivion
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
commands:
|
|
- echo Server = http://mirror.archlinux.cl/\$repo/os/\$arch > /etc/pacman.d/mirrorlist
|
|
- /bin/su -s /bin/sh -c '/run.sh /drone/src/"$DRONE_STEP_NAME" "$OUTPUT_DIR"' notroot
|
|
|
|
|
|
- name: build-db-and-push
|
|
image: archlinux
|
|
user: 0
|
|
commands:
|
|
- pacman -Sy --noconfirm
|
|
- cd "$MOUNT_POINT"
|
|
- cd "$MOUNT_POINT" && pacman -S wget curl jq --noconfirm
|
|
- cd "$MOUNT_POINT" && curl -sSL -k -X GET -G $REPO_API_URL/assets?repository=aur-auto-builder > output
|
|
- cd "$MOUNT_POINT" && cat output | jq '.items | map(.downloadUrl)' > jq-output
|
|
- cd "$MOUNT_POINT" && for k in $(jq -r ".[]" jq-output); do wget "$k"; done
|
|
- cd "$MOUNT_POINT" && cat jq-output && ls -la
|
|
- cd "$MOUNT_POINT" && rm -rf jq-output output repo.*
|
|
- ls -la "$MOUNT_POINT"
|
|
- cd "$MOUNT_POINT" && repo-add auto-builder.db.tar.gz *.pkg.tar.*
|
|
- cd "$MOUNT_POINT" && for filename in "$MOUNT_POINT"/*; do curl -X DELETE -v -u "$USERNAME:$PASSWORD" $REPO_URL/$(basename $filename) ; done
|
|
- cd "$MOUNT_POINT" && for filename in "$MOUNT_POINT"/*; do curl -v -u "$USERNAME:$PASSWORD" -T $filename $REPO_URL/$(basename $filename) ; done
|
|
volumes:
|
|
- name: oblivion
|
|
path: /oblivion/x86_64
|
|
environment:
|
|
REPO_API_URL: http://10.0.0.85:8081/service/rest/v1
|
|
REPO_URL: http://10.0.0.85:8081/repository/aur-auto-builder
|
|
MOUNT_POINT: /oblivion/x86_64
|
|
USERNAME:
|
|
from_secret: nexus_username
|
|
PASSWORD:
|
|
from_secret: nexus_password
|
|
|
|
|
|
|
|
volumes:
|
|
- name: oblivion
|
|
temp: {}
|