From 2038e2d07f720be296d0c7ba3d1ecc1dadb51a05 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 5 Oct 2023 19:12:08 +0300 Subject: [PATCH] feat: first ci attempt --- .build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..90035ef --- /dev/null +++ b/.build.yml @@ -0,0 +1,22 @@ +image: alpine/edge +packages: + - docker +sources: + - https://git.src.quest/~skye/tixe +environment: + project: tixe +secrets: + - ef58262b-f72b-460f-b417-42aed24fc67e +tasks: + - setup: | + sudo rc-service docker start + sudo addgroup $(whoami) docker + - build: | + cd $project + export VERSION=$(git describe --tags) + docker build -t liljamo/tixe:"$VERSION" . --build-arg VERSION="$VERSION" + - push: | + cd $project + export VERSION=$(git describe --tags) + docker login --username liljamo --password-stdin < ~/.docker-hub-token + docker push liljamo/tixe:"$VERSION" -- 2.44.1