8 Commits

Author SHA1 Message Date
quent1 49bc46cfa9 ci: try to automate release 2026-05-17 18:20:43 +02:00
quent1 d3395abf94 chore: upgrade Alpine 2026-05-17 18:11:22 +02:00
quent1 e88646cd14 Actualiser .gitea/workflows/build.yaml
Build / build (push) Successful in 54s
2026-03-14 15:58:42 +01:00
quent1 698b23aff0 Fxied folders creation
Build / build (push) Failing after 44s
2024-04-02 23:21:52 +02:00
quent1 a2df1d852c Removed libcrypto1.1
Build / build (push) Successful in 1m5s
2024-02-24 18:52:45 +01:00
quent1 6f9e319ec8 Upgrade Alpine Linux to 3.19
Build / build (push) Failing after 1m4s
2024-02-24 18:47:55 +01:00
quent1 e0ee6ff7c6 Fix caching issue
Build / build (push) Successful in 1m36s
Replaced RUN curl <url> with ADD <url> to prevent archive caching.
2023-06-12 22:06:51 +02:00
quent1 5b4380a4d4 Fix pipeline
Build / build (push) Successful in 46s
See https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294
2023-06-12 21:44:53 +02:00
4 changed files with 55 additions and 9 deletions
+2 -3
View File
@@ -17,9 +17,6 @@ jobs:
shell: bash
run: echo "AKKOMA_VERSION=${GITHUB_REF_NAME#refs/tags/v}" >> $GITHUB_ENV
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Configure Docker credentials
uses: docker/login-action@v2
with:
@@ -29,6 +26,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
context: .
file: ./Dockerfile
+47
View File
@@ -0,0 +1,47 @@
name: Check for a new Akkoma release
on:
schedule:
- cron: '2 * * * *'
jobs:
check-releases:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract latest version from Akkoma forge
run: |
set -e # Fail on error
LATEST_VERSION=$(curl -s https://akkoma.dev/AkkomaGang/akkoma/tags.rss | \
grep '<link>https://akkoma.dev/AkkomaGang/akkoma/releases/tag/' | \
head -n 1 | rev | cut -d '/' -f 2 | rev | cut -d '<' -f 1)
LATEST_VERSION=${LATEST_VERSION#v}
echo "Latest Akkoma version: $LATEST_VERSION"
echo "LATEST_VERSION=$LATEST_VERSION" >> $GITHUB_ENV
- name: Check if tag exists
id: check
run: |
if git rev-parse "v${LATEST_VERSION}" >/dev/null 2>&1
then
echo "Tag v${LATEST_VERSION} already exists."
echo "new_version=false" >> $GITHUB_OUTPUT
else
echo "New version detected: ${LATEST_VERSION}"
echo "new_version=true" >> $GITHUB_OUTPUT
fi
- name: Configure Git
run: |
git config user.name "Gitea Actions"
git config user.email "actions@git.quent1.fr"
git remote set-url origin "https://${{ secrets.GITEA_TOKEN }}@git.quent1.fr/${{ github.repository }}"
- name: Create and push new tag
if: steps.check.outputs.new_version == 'true'
run: |
git tag "v${LATEST_VERSION}"
git push origin "v${LATEST_VERSION}"
+5 -5
View File
@@ -1,4 +1,4 @@
FROM alpine:3.17
FROM alpine:3
ENV MIX_ENV prod
ENV PATH "${PATH}:/opt/akkoma/bin"
@@ -7,7 +7,7 @@ ENV AKKOMA_CONFIG_PATH "/config/config.exs"
# Install required (and optional) packages
RUN awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories && \
apk update && \
apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool libcrypto1.1
apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool
# Set entrypoint
COPY ./entrypoint.sh /entrypoint.sh
@@ -17,10 +17,10 @@ RUN chown root:root /entrypoint.sh && \
# Create a dedicated user for Akkoma
RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma
# Clone the release build into a temporary directory and unpack it
# Download the release build into a temporary directory and unpack it
# then move the release to the home directory and delete temporary files
RUN curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' -o /tmp/akkoma.zip && \
unzip /tmp/akkoma.zip -d /tmp/ && \
ADD 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' /tmp/akkoma.zip
RUN unzip /tmp/akkoma.zip -d /tmp/ && \
mv /tmp/release/* /opt/akkoma && \
rmdir /tmp/release && \
rm /tmp/akkoma.zip && \
+1 -1
View File
@@ -4,7 +4,7 @@ set -e
if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ]
then
mkdir -p /data/{uploads,static}
mkdir -p /data/uploads /data/static
mkdir -p /config
chown -R akkoma /data /config