Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
619c1b59
Commit
619c1b59
authored
Jan 16, 2020
by
Zac Wood
Browse files
add env to CI
parent
23c2d581
Pipeline
#5328
passed with stages
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
619c1b59
...
...
@@ -5,7 +5,6 @@ services:
stages
:
-
test
-
lint
-
build
variables
:
MYSQL_DATABASE
:
go
...
...
@@ -26,13 +25,14 @@ before_script:
-
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_CAS_URL="https://
login
.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=
-
export GO_STATIC_ROOT=/static
-
python manage.py makemigrations
-
python manage.py makemigrations go
-
python manage.py migrate
...
...
@@ -49,16 +49,4 @@ Go-flake8:
stage
:
lint
script
:
-
pip install flake8
-
flake8 go/ --statistics --exit-zero
build
:
stage
:
build
retry
:
2
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.prod --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
tags
-
flake8 go/ --statistics --exit-zero
\ No newline at end of file
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