no shortcuts to prod

modified:   .gitlab-ci.yml
	modified:   Makefile
This commit is contained in:
Russell Ballestrini 2025-03-03 10:55:06 -05:00
parent 7b8b54f038
commit 8b456825ce
2 changed files with 1 additions and 9 deletions

View file

@ -10,10 +10,6 @@ test:
except:
- tags
script: make test
artifacts:
paths:
- env.vanilla
expire_in: 1 hour
build:
stage: build
@ -21,8 +17,6 @@ build:
except:
- tags
script:
- ls -hal
- mv env.vanilla env
- make install-source-prod
# Copy static assets to env/static
- cp -pr remarkbox/static env/static
@ -34,7 +28,7 @@ build:
- cp -pr env/static static
- tar -zcf static.tar.gz static
# Clone the virtualenv with virtualenv-clone into the desired location.
- virtualenv-clone env /opt/remarkbox/env
- virtualenv-clone -vvv $PWD/env /opt/remarkbox/env
# Create a tarball of the virtualenv.
- tar -zcf env.tar.gz -C /opt/remarkbox .
# Create a SHA512 hash of env.tar.gz.

View file

@ -67,13 +67,11 @@ install-source-dev-and-test: venv install-themes
$(PIP) install --editable .
$(PIP) install --upgrade -r requirements-dev.txt
$(PIP) install --upgrade -r requirements-test.txt
cp -rp $(VENV_DIR) $(VENV_DIR).vanilla
install-source-prod: venv install-themes
@echo "Installing remarkbox from source (editable mode)..."
$(PIP) install .
$(PIP) install --upgrade -r requirements-prod.txt
cp -rp $(VENV_DIR) $(VENV_DIR).vanilla
# -----------------------------------------------------------------------------