~fluix/fluix.one

ca4d69152fc0eb8897ca3e95fb2588299f170602 — Steven Guikal 9 months ago 1c6d058
Remove CI

Building and deployment is done with APKBUILDs now.
3 files changed, 0 insertions(+), 74 deletions(-)

D .apko.yaml
D .build.yml
D .melange.yaml
D .apko.yaml => .apko.yaml +0 -13
@@ 1,13 0,0 @@
contents:
  repositories:
    - https://dl-cdn.alpinelinux.org/alpine/edge/main
    - "@local ./packages"
  packages:
    - busybox-extras
    - fluix@local

archs:
  - x86_64

entrypoint:
  command: /bin/busybox-extras httpd -fvh /var/lib/fluix/

D .build.yml => .build.yml +0 -40
@@ 1,40 0,0 @@
image: alpine/latest
packages:
  - bubblewrap
  - go
  - rsync
secrets:
  - 66d662f1-153c-40c9-97e4-524b93672fd2
environment:
  PROJECT: fluix.one
  HOST: 139.144.111.148
sources:
  - git@git.sr.ht:~fluix/fluix.one
  - https://github.com/chainguard-dev/apko.git
  - https://github.com/chainguard-dev/melange
tasks:
  - apko: |
      cd apko
      make apko
      sudo make install
  - melange: |
      cd melange
      make melange
      sudo make install
  - project: |
      cd $PROJECT
      melange keygen
      # TODO: switch to --use-proot when it goes out of testing
      sudo melange build --arch x86_64 --signing-key melange.rsa
      VERSION=$(git rev-parse --short HEAD)
      apko build .apko.yaml $PROJECT:$VERSION $PROJECT-$VERSION.tar -r packages -k melange.rsa.pub
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config

      rsync $PROJECT-$VERSION.tar root@$HOST:/root/
      ssh root@$HOST podman load -i /root/$PROJECT-$VERSION.tar
      ssh root@$HOST podman tag $PROJECT:$VERSION-amd64 $PROJECT:latest
      ssh root@$HOST service pod-$PROJECT restart
triggers:
  - action: email
    condition: failure
    to: Steven Guikal <builds-void@fluix.one>

D .melange.yaml => .melange.yaml +0 -21
@@ 1,21 0,0 @@
package:
  name: fluix
  version: 0.1.0
  description: "Personal website with blogs, projects, and more."
  options:
    # melange automatically looks for .so files, but the ones in this
    # repository are just static files we serve.
    no-depends: true

environment:
  contents:
    repositories:
      - https://dl-cdn.alpinelinux.org/alpine/edge/main
      - https://dl-cdn.alpinelinux.org/alpine/edge/community
    packages:
      - busybox
      - git
      - hugo

pipeline:
  - runs: hugo --minify -d ${{targets.destdir}}/var/lib/${{package.name}}/