Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
go
Commits
a85031fb
Commit
a85031fb
authored
Dec 29, 2018
by
David Haynes
🙆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python stuff in the python job
parent
a0055ebe
Pipeline
#3548
failed with stage
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
29 deletions
+27
-29
.gitlab-ci.yml
.gitlab-ci.yml
+27
-29
No files found.
.gitlab-ci.yml
View file @
a85031fb
...
...
@@ -8,39 +8,37 @@ variables:
MYSQL_DATABASE
:
go
MYSQL_ROOT_PASSWORD
:
root
before_script
:
-
apt-get update -qy
-
apt-get install -y redis-server
-
pip install pipenv
-
pipenv install -d --system --deploy
-
nohup redis-server &
-
cd go/
-
export GO_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
-
export GO_DB_NAME="go"
-
export GO_ENV="production"
-
export GO_DB_USER="root"
-
export GO_DB_PASSWORD="root"
-
export GO_DB_HOST="mysql"
-
export GO_DB_PORT=3306
-
export GO_ALLOWED_HOSTS="*"
-
export GO_EMAIL_DOMAIN="@masonlive.gmu.edu"
-
export GO_CAS_URL="https://cas.srct.gmu.edu/"
-
export GO_EMAIL_HOST=
-
export GO_EMAIL_PORT=
-
export GO_EMAIL_HOST_USER=
-
export GO_EMAIL_HOST_PASSWORD=
-
export GO_EMAIL_FROM=
-
export GO_EMAIL_TO=
-
python manage.py makemigrations
-
python manage.py makemigrations go_ahead
-
python manage.py makemigrations go_back
-
python manage.py migrate
-
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', 'root@srct.gmu.edu', 'root') " | python manage.py shell
Go-py3.7
:
image
:
library/python:3.7
stage
:
build
script
:
-
apt-get update -qy
-
apt-get install -y redis-server
-
pip install pipenv
-
pipenv install -d --system --deploy
-
nohup redis-server &
-
cd go/
-
export GO_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
-
export GO_DB_NAME="go"
-
export GO_ENV="production"
-
export GO_DB_USER="root"
-
export GO_DB_PASSWORD="root"
-
export GO_DB_HOST="mysql"
-
export GO_DB_PORT=3306
-
export GO_ALLOWED_HOSTS="*"
-
export GO_EMAIL_DOMAIN="@masonlive.gmu.edu"
-
export GO_CAS_URL="https://cas.srct.gmu.edu/"
-
export GO_EMAIL_HOST=
-
export GO_EMAIL_PORT=
-
export GO_EMAIL_HOST_USER=
-
export GO_EMAIL_HOST_PASSWORD=
-
export GO_EMAIL_FROM=
-
export GO_EMAIL_TO=
-
python manage.py makemigrations
-
python manage.py makemigrations go_ahead
-
python manage.py makemigrations go_back
-
python manage.py migrate
-
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', 'root@srct.gmu.edu', 'root') " | python manage.py shell
-
echo "done :)"
Go-node11
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment