From 4da622b12a93aed00e485e2e2fb7555658f1a3d3 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Mon, 16 Sep 2024 09:26:49 +0200 Subject: [PATCH] Add sourchut CI --- .builds/docker.yml | 26 ++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .builds/docker.yml diff --git a/.builds/docker.yml b/.builds/docker.yml new file mode 100644 index 0000000..c7eaf9b --- /dev/null +++ b/.builds/docker.yml @@ -0,0 +1,26 @@ +image: alpine/edge +packages: + - openrc + - docker +sources: + - git.hut.ccw.icu/~comcloudway/docker-akkoma-alpine +environment: + username: "comcloudway" + registry: "codeberg.org" + image: "akkoma-basic-alpine" +secrets: + # codeberg packages r/w access token + # token should be placed in ~/.docker-login + - a7b36bdb-bcea-4360-a1a0-a55b84fb1ede +tasks: + - setup: | + sudo rc-service docker start + cat ~/.docker-login | sudo docker login $registry -u $username --password-stdin + - build: | + cd docker-akkoma-alpine + tag="$(git tag --contains HEAD | head -n 1)" + sudo docker build -t "$registry/$username/$image:${tag:-edge}" . + - publish: | + cd docker-akkoma-alpine + tag="$(git tag --contains HEAD | head -n 1)" + sudo docker push "$registry/$username/$image:${tag:-edge}" diff --git a/README.md b/README.md index 8509623..798bf66 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # akkoma-basic-alpine +[![builds.sr.ht status](http://builds.hut.ccw.icu/~comcloudway/docker-akkoma-alpine.svg)](http://builds.hut.ccw.icu/~comcloudway/docker-akkoma-alpine?) + **If your are looking for the official akkoma provided docker images, click [here](https://docs.akkoma.dev/stable/installation/docker_en/)** Unofficial [Akkoma](https://akkoma.social) docker image based on [Alpine Linux](https://alpinelinux.org), -- 2.38.5