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:
Regular → Executable
+11
-6
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user