--- kind: pipeline type: docker name: electron-ozone platform: os: linux arch: amd64 workspace: path: /drone steps: - name: cache-init_electron-ozone pull: if-not-exists image: leophys/pikaur:0.3 user: root commands: - | if ! [ "$(ls -A /cache_stage/etc)" ]; then cp -r /etc/. /cache_stage/etc/ getfacl -p -R /etc > /cache_stage/etc/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/opt)" ]; then cp -r /opt/. /cache_stage/opt/ getfacl -p -R /opt > /cache_stage/opt/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/var)" ]; then cp -r /var/. /cache_stage/var/ getfacl -p -R /var > /cache_stage/var/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/usr)" ]; then cp -r /usr/. /cache_stage/usr/ getfacl -p -R /usr > /cache_stage/usr/permissions.acl fi - chmod a+rw /output volumes: - name: etc_electron-ozone path: /cache_stage/etc - name: opt_electron-ozone path: /cache_stage/opt - name: var_electron-ozone path: /cache_stage/var - name: usr_electron-ozone path: /cache_stage/usr - name: output path: /output - name: cache-acl_electron-ozone pull: if-not-exists image: leophys/pikaur:0.3 user: root commands: - setfacl --restore=/etc/permissions.acl - setfacl --restore=/opt/permissions.acl - setfacl --restore=/var/permissions.acl - setfacl --restore=/usr/permissions.acl - chown build:33 -R /build volumes: - name: build_electron-ozone path: /build - name: etc_electron-ozone path: /etc - name: opt_electron-ozone path: /opt - name: var_electron-ozone path: /var - name: usr_electron-ozone path: /usr - name: build_electron-ozone pull: if-not-exists image: leophys/pikaur:0.3 commands: - | if [ -f /output/lock ]; then while [ -f /output/lock ]; do sleep 10 echo "Waiting $(cat /output/lock)" done else echo "electron-ozone" >> /output/lock fi - | set -euo pipefail /usr/bin/pikaur -Sy --noconfirm electron-ozone|tee /output/electron-ozone.log - rm -f /output/lock volumes: - name: build_electron-ozone path: /build - name: etc_electron-ozone path: /etc - name: opt_electron-ozone path: /opt - name: var_electron-ozone path: /var - name: usr_electron-ozone path: /usr - name: output path: /output volumes: - name: build_electron-ozone host: path: /var/builds/archlinux/electron-ozone - name: etc_electron-ozone host: path: /var/builds/archlinux/etc/electron-ozone - name: opt_electron-ozone host: path: /var/builds/archlinux/opt/electron-ozone - name: var_electron-ozone host: path: /var/builds/archlinux/var/electron-ozone - name: usr_electron-ozone host: path: /var/builds/archlinux/usr/electron-ozone - name: output host: path: /var/builds/archlinux/output trigger: branch: - master event: - push - cron --- kind: pipeline type: docker name: notify_failure-electron-ozone clone: disable: true steps: - name: notify_failure pull: if-not-exists image: leophys/mailer:0.5-1 environment: M_SERVER_ADDRESS: from_secret: m_server_address M_USER: from_secret: m_user M_PASSWORD: from_secret: m_password M_FROM: from_secret: m_from M_TO: from_secret: m_to M_SUB: "[electron-ozone] FAILURE" commands: - /sendmail.sh /output/electron-ozone.log - rm -f /output/lock volumes: - name: output path: /output volumes: - name: output host: path: /var/builds/archlinux/output trigger: status: - failure depends_on: - electron-ozone --- kind: pipeline type: docker name: discord_arch_electron platform: os: linux arch: amd64 workspace: path: /drone steps: - name: cache-init_discord_arch_electron pull: if-not-exists image: leophys/pikaur:0.3 user: root commands: - | if ! [ "$(ls -A /cache_stage/etc)" ]; then cp -r /etc/. /cache_stage/etc/ getfacl -p -R /etc > /cache_stage/etc/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/opt)" ]; then cp -r /opt/. /cache_stage/opt/ getfacl -p -R /opt > /cache_stage/opt/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/var)" ]; then cp -r /var/. /cache_stage/var/ getfacl -p -R /var > /cache_stage/var/permissions.acl fi - | if ! [ "$(ls -A /cache_stage/usr)" ]; then cp -r /usr/. /cache_stage/usr/ getfacl -p -R /usr > /cache_stage/usr/permissions.acl fi - chmod a+rw /output volumes: - name: etc_discord_arch_electron path: /cache_stage/etc - name: opt_discord_arch_electron path: /cache_stage/opt - name: var_discord_arch_electron path: /cache_stage/var - name: usr_discord_arch_electron path: /cache_stage/usr - name: output path: /output - name: cache-acl_discord_arch_electron pull: if-not-exists image: leophys/pikaur:0.3 user: root commands: - setfacl --restore=/etc/permissions.acl - setfacl --restore=/opt/permissions.acl - setfacl --restore=/var/permissions.acl - setfacl --restore=/usr/permissions.acl - chown -R build:33 /output volumes: - name: build_discord_arch_electron path: /build - name: etc_discord_arch_electron path: /etc - name: opt_discord_arch_electron path: /opt - name: var_discord_arch_electron path: /var - name: usr_discord_arch_electron path: /usr - name: build_discord_arch_electron pull: if-not-exists image: leophys/pikaur:0.3 commands: - | if [ -f /output/lock ]; then while [ -f /output/lock ]; do sleep 10 echo "Waiting $(cat /output/lock)" done else echo "discord_arch_electron" >> /output/lock fi - | set -euo pipefail /usr/bin/pikaur -Sy --noconfirm discord_arch_electron|tee /output/discord_arch_electron.log - rm -f /output/lock volumes: - name: build_discord_arch_electron path: /build - name: etc_discord_arch_electron path: /etc - name: opt_discord_arch_electron path: /opt - name: var_discord_arch_electron path: /var - name: usr_discord_arch_electron path: /usr - name: output path: /output volumes: - name: build_discord_arch_electron host: path: /var/builds/archlinux/discord_arch_electron - name: etc_discord_arch_electron host: path: /var/builds/archlinux/etc/discord_arch_electron - name: opt_discord_arch_electron host: path: /var/builds/archlinux/opt/discord_arch_electron - name: var_discord_arch_electron host: path: /var/builds/archlinux/var/discord_arch_electron - name: usr_discord_arch_electron host: path: /var/builds/archlinux/usr/discord_arch_electron - name: output host: path: /var/builds/archlinux/output trigger: branch: - master event: - push - cron --- kind: pipeline type: docker name: notify_failure-discord_arch_electron clone: disable: true steps: - name: notify_failure pull: if-not-exists image: leophys/mailer:0.5-1 environment: M_SERVER_ADDRESS: from_secret: m_server_address M_USER: from_secret: m_user M_PASSWORD: from_secret: m_password M_FROM: from_secret: m_from M_TO: from_secret: m_to M_SUB: "[discord_arch_electron] FAILURE" commands: - /sendmail.sh /output/discord_arch_electron.log - rm -f /output/lock volumes: - name: output path: /output volumes: - name: output host: path: /var/builds/archlinux/output trigger: status: - failure depends_on: - discord_arch_electron --- kind: pipeline type: docker name: notify_success clone: disable: true steps: - name: notify_success pull: if-not-exists image: leophys/mailer:0.5-1 environment: M_SERVER_ADDRESS: from_secret: m_server_address M_USER: from_secret: m_user M_PASSWORD: from_secret: m_password M_FROM: from_secret: m_from M_TO: from_secret: m_to M_SUB: "[archlinux] SUCCESS" M_TEXT: "Success building archlinux packages" trigger: status: - success depends_on: - electron-ozone - discord_arch_electron --- kind: signature hmac: 6a46d65e99fe32d2c18292beb7ddc3f278cc3cf68013d3ce5821fc248a9befdb ...