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
619c1b59
Commit
619c1b59
authored
Jan 16, 2020
by
Zac Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
.gitlab-ci.yml
.gitlab-ci.yml
+3
-15
No files found.
.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