Move docker creation over to devenv

This is not ideal, since devenv is more for creating development
environments, but it works
This commit is contained in:
2026-06-13 14:55:37 +02:00
parent 86d390f621
commit 64b2588dd2
8 changed files with 99 additions and 57 deletions
Regular → Executable
+11 -6
View File
@@ -1,12 +1,17 @@
#! /bin/bash
#!/usr/bin/env bash
if [ ! -d "/code/.git" ]; then
# Config
REPO_URL="https://gitlab.julian-mutter.de/julian/fdroid-frajul"
BRANCH="master"
if [ ! -d "./code/.git" ]; then
echo "Performing initial setup!"
mkdir /code
echo "Current working directory: $(pwd)"
mkdir ./code
echo "Cloning repository..."
git clone --branch "$BRANCH" "$REPO_URL" "/code"
git clone --branch "$BRANCH" "$REPO_URL" "./code"
echo "Decrypting secrets..."
cd /code
cd ./code
./scripts/decrypt.sh
echo "Done"
fi
@@ -14,7 +19,7 @@ fi
echo "Running regular repo update..."
echo ""
cd "/code"
cd "./code"
git fetch origin
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse "origin/$BRANCH")