Ci workflows (#185)
* Build dev images with every commit. * Use virtualenv to build dev images. * Activate virtualenv properly.
This commit is contained in:
@@ -58,6 +58,3 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- build:
|
- build:
|
||||||
context: org-global
|
context: org-global
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: master
|
|
||||||
|
|||||||
4
build.sh
4
build.sh
@@ -12,7 +12,9 @@ fi
|
|||||||
REG_URL=${REGISTRY}_URL
|
REG_URL=${REGISTRY}_URL
|
||||||
|
|
||||||
if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ] ; then
|
if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ] ; then
|
||||||
python -m pip install python-gitlab
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
pip install python-gitlab
|
||||||
# Get the latest commit for repositories and set their reference values to be
|
# Get the latest commit for repositories and set their reference values to be
|
||||||
# used in the development builds.
|
# used in the development builds.
|
||||||
CORE_REF=$(python get_latest_ref.py mailman/mailman)
|
CORE_REF=$(python get_latest_ref.py mailman/mailman)
|
||||||
|
|||||||
Reference in New Issue
Block a user