commit 65c3e85f4b4259a771676e15bdde3e3d54f2a140 Author: Davide Depau Date: Fri Apr 17 05:49:44 2020 +0200 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2fc6b50 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +type: docker +name: alarm-aarch64 + +platform: + os: linux + arch: arm64 + +steps: + - name: build-image + image: plugins/docker + environment: + TZ: Europe/Rome + settings: + dockerfile: Dockerfile.aarch64 + purge: true + username: depau + password: + from_secret: docker_password + repo: depau/archlinux-makepkg + tags: + - aarch64 + +--- +kind: pipeline +type: docker +name: archlinux-x86_64 + +platform: + os: linux + arch: amd64 + +steps: + - name: build-image + image: plugins/docker + environment: + TZ: Europe/Rome + settings: + dockerfile: Dockerfile.x86_64 + purge: true + username: depau + password: + from_secret: docker_password + repo: depau/archlinux-makepkg + tags: + - x86_64 diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 new file mode 100644 index 0000000..c3b57ea --- /dev/null +++ b/Dockerfile.aarch64 @@ -0,0 +1,24 @@ +FROM depau/archlinux-daily:aarch64 + +# Add common build utils and other needed packages +RUN pacman -Syu --noconfirm base base-devel pacman-contrib git cmake \ + meson ninja sudo asp pyalpm + +# Add builds user +RUN useradd -mG wheel builder && \ + echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + +# Colors and candy +RUN sed -i 's/^BUILDENV=.*$/BUILDENV=(!distcc color !ccache check !sign)/g' /etc/makepkg.conf && \ + sed -i 's/^#Color/Color\nILoveCandy/g' /etc/pacman.conf + +USER builder + +# Add pikaur +RUN cd /home/builder && \ + git clone https://aur.archlinux.org/pikaur.git && \ + cd pikaur && \ + makepkg -sAc && \ + sudo pacman --noconfirm -U pikaur*.pkg.* && \ + cd .. && \ + rm -Rf pikaur diff --git a/Dockerfile.x86_64 b/Dockerfile.x86_64 new file mode 100644 index 0000000..6193479 --- /dev/null +++ b/Dockerfile.x86_64 @@ -0,0 +1,24 @@ +FROM depau/archlinux-daily:x86_64 + +# Add common build utils and other needed packages +RUN pacman -Syu --noconfirm base base-devel pacman-contrib git cmake \ + meson ninja sudo asp pyalpm + +# Add builds user +RUN useradd -mG wheel builder && \ + echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + +# Colors and candy +RUN sed -i 's/^BUILDENV=.*$/BUILDENV=(!distcc color !ccache check !sign)/g' /etc/makepkg.conf && \ + sed -i 's/^#Color/Color\nILoveCandy/g' /etc/pacman.conf + +USER builder + +# Add pikaur +RUN cd /home/builder && \ + git clone https://aur.archlinux.org/pikaur.git && \ + cd pikaur && \ + makepkg -sAc && \ + sudo pacman --noconfirm -U pikaur*.pkg.* && \ + cd .. && \ + rm -Rf pikaur