From ca4d69152fc0eb8897ca3e95fb2588299f170602 Mon Sep 17 00:00:00 2001 From: Steven Guikal Date: Sun, 31 Dec 2023 19:51:32 -0500 Subject: [PATCH] Remove CI Building and deployment is done with APKBUILDs now. --- .apko.yaml | 13 ------------- .build.yml | 40 ---------------------------------------- .melange.yaml | 21 --------------------- 3 files changed, 74 deletions(-) delete mode 100644 .apko.yaml delete mode 100644 .build.yml delete mode 100644 .melange.yaml diff --git a/.apko.yaml b/.apko.yaml deleted file mode 100644 index 4a03678..0000000 --- a/.apko.yaml +++ /dev/null @@ -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/ diff --git a/.build.yml b/.build.yml deleted file mode 100644 index c492558..0000000 --- a/.build.yml +++ /dev/null @@ -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 diff --git a/.melange.yaml b/.melange.yaml deleted file mode 100644 index 2f5cc67..0000000 --- a/.melange.yaml +++ /dev/null @@ -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}}/ -- 2.45.2