- stable
- refs/tags/v*
- refs/tags/stable-*
+ - &on-stable
+ when:
+ event:
+ - push
+ - tag
+ branch:
+ - stable
+ - refs/tags/stable-*
- &on-point-release
when:
event:
- export SOURCE=akkoma-ubuntu-jammy.zip
- export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-ubuntu-jammy.zip
- /bin/sh /entrypoint.sh
+ - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-ubuntu-jammy.zip
+ - /bin/sh /entrypoint.sh
debian-bullseye:
image: elixir:1.13.4
# Canonical amd64-musl
musl:
image: elixir:1.13.4-alpine
- <<: *on-release
+ <<: *on-stable
environment:
MIX_ENV: prod
commands:
release-musl:
image: akkoma/releaser
- <<: *on-release
+ <<: *on-stable
secrets: *scw-secrets
commands:
- export SOURCE=akkoma-amd64-musl.zip
su akkoma -s $SHELL -lc "./bin/pleroma_ctl migrate"
```
+If you selected an alternate flavour on installation,
+you _may_ need to specify `--flavour`, in the same way as
+[when installing](../../installation/otp_en#detecting-flavour).
+
## For from source installations (using git)
1. Go to the working directory of Akkoma (default is `/opt/akkoma`)
Use the following mapping to figure out your flavour:
-| distribution | flavour |
-| ------------- | ------------ |
-| debian stable | amd64 |
-| ubuntu focal | amd64 |
-| ubuntu jammy | ubuntu-jammy |
-| alpine | amd64-musl |
+| distribution | flavour | available branches |
+| ------------- | ------------------ | ------------------- |
+| debian stable | amd64 | develop, stable |
+| ubuntu focal | amd64 | develop, stable |
+| ubuntu jammy | amd64-ubuntu-jammy | develop, stable |
+| alpine | amd64-musl | stable |
Other similar distributions will _probably_ work, but if it is not listed above, there is no official
support.
# XXX: This should be removed when elixir's releases get custom command support
detect_flavour() {
- arch="$(uname -m)"
- if [ "$arch" = "x86_64" ]; then
- arch="amd64"
- elif [ "$arch" = "aarch64" ]; then
- arch="arm64"
- else
- echo "Unsupported arch: $arch" >&2
- exit 1
- fi
-
- if getconf GNU_LIBC_VERSION >/dev/null; then
- libc_postfix=""
- elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then
- libc_postfix="-musl"
- elif [ "$(find /lib/libc.musl* | wc -l)" ]; then
- libc_postfix="-musl"
- else
- echo "Unsupported libc" >&2
- exit 1
- fi
-
- echo "$arch$libc_postfix"
+ arch="amd64"
+ # Special cases
+ if grep -qe "VERSION_CODENAME=jammy" /etc/os-release; then
+ echo "$arch-ubuntu-jammy"
+ else
+ if getconf GNU_LIBC_VERSION >/dev/null; then
+ libc_postfix=""
+ elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then
+ libc_postfix="-musl"
+ elif [ "$(find /lib/libc.musl* | wc -l)" ]; then
+ libc_postfix="-musl"
+ else
+ echo "Unsupported libc" >&2
+ exit 1
+ fi
+
+ echo "$arch$libc_postfix"
+ fi
}
detect_branch() {