2024-02-12 23:44:40 +00:00
|
|
|
package:
|
|
|
|
name: akkoma
|
2024-02-23 18:26:22 +00:00
|
|
|
version: 3.10.99.20240223
|
2024-02-12 23:44:40 +00:00
|
|
|
epoch: 0
|
|
|
|
description: "Magically expressive social media"
|
|
|
|
target-architecture:
|
|
|
|
- x86_64
|
2024-02-23 18:26:22 +00:00
|
|
|
- aarch64
|
2024-02-12 23:44:40 +00:00
|
|
|
copyright:
|
|
|
|
- attestation: |
|
|
|
|
Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
Copyright © 2022 Akkoma Authors <https://akkoma.social/>
|
|
|
|
license: "AGPL-3.0-or-later"
|
|
|
|
- paths:
|
|
|
|
- "docs/*"
|
|
|
|
attestation: |
|
|
|
|
Copyright © 2021-2022 Pleroma Authors <https://pleroma.social/>
|
|
|
|
Copyright © 2022 Akkoma Authors <https://akkoma.social/>
|
|
|
|
license: "CC-BY-4.0"
|
|
|
|
- paths:
|
|
|
|
- "priv/static/images/pleroma-fox-tan-smol.png"
|
|
|
|
attestation: |
|
|
|
|
Copyright © 2019 shitposter.club
|
|
|
|
license: "CC-BY-4.0"
|
|
|
|
- paths:
|
|
|
|
- "priv/static/instance/thumbnail.jpeg"
|
|
|
|
attestation: |
|
|
|
|
Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
|
|
|
license: "CC-BY-4.0"
|
|
|
|
dependencies:
|
|
|
|
runtime:
|
|
|
|
- alpine-baselayout-data
|
|
|
|
- ca-certificates-bundle
|
|
|
|
- ffmpeg
|
|
|
|
- imagemagick
|
|
|
|
- exiftool
|
|
|
|
- ncurses
|
|
|
|
- postgresql-client
|
|
|
|
- file
|
|
|
|
- libmagic
|
|
|
|
environment:
|
|
|
|
contents:
|
|
|
|
repositories:
|
|
|
|
- https://dl-cdn.alpinelinux.org/alpine/edge/main
|
|
|
|
- https://dl-cdn.alpinelinux.org/alpine/edge/community
|
|
|
|
packages:
|
|
|
|
- alpine-baselayout-data
|
|
|
|
- busybox
|
2024-02-23 18:26:22 +00:00
|
|
|
- ca-certificates-bundle
|
|
|
|
- git
|
|
|
|
- gcc
|
|
|
|
- g++
|
|
|
|
- musl-dev
|
|
|
|
- make
|
|
|
|
- cmake
|
|
|
|
- file-dev
|
|
|
|
- exiftool
|
|
|
|
- ffmpeg
|
|
|
|
- imagemagick
|
|
|
|
- libmagic
|
|
|
|
- ncurses
|
|
|
|
- postgresql-client
|
|
|
|
- elixir
|
2024-02-12 23:44:40 +00:00
|
|
|
accounts:
|
|
|
|
users:
|
|
|
|
- username: akkoma
|
|
|
|
uid: 1001
|
|
|
|
gid: 1001
|
|
|
|
groups:
|
|
|
|
- groupname: akkoma
|
|
|
|
gid: 1001
|
|
|
|
members: ["akkoma"]
|
|
|
|
|
|
|
|
pipeline:
|
2024-02-23 18:26:22 +00:00
|
|
|
- uses: git-checkout
|
2024-02-12 23:44:40 +00:00
|
|
|
with:
|
2024-02-23 18:26:22 +00:00
|
|
|
repository: https://akkoma.dev/AkkomaGang/akkoma.git
|
|
|
|
branch: develop
|
|
|
|
- name: Build OTP application
|
2024-02-12 23:44:40 +00:00
|
|
|
runs: |
|
2024-02-23 18:26:22 +00:00
|
|
|
set -x
|
|
|
|
export MIX_ENV=prod
|
|
|
|
mix local.hex --force
|
|
|
|
mix local.rebar --force
|
|
|
|
mix deps.get --only=prod
|
|
|
|
mix release --path ${{targets.destdir}}/usr/akkoma
|
2024-02-12 23:44:40 +00:00
|
|
|
- name: Create directories
|
|
|
|
runs: |
|
|
|
|
mkdir -p ${{targets.contextdir}}/etc/akkoma
|
|
|
|
mkdir -p ${{targets.contextdir}}/var/lib/akkoma/uploads
|
|
|
|
mkdir -p ${{targets.contextdir}}/var/lib/akkoma/static
|
|
|
|
chown -R akkoma:akkoma ${{targets.contextdir}}/var/lib/akkoma
|