Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Erik Sesseng Aas
tdt4242-base
Commits
fabaeb76
Commit
fabaeb76
authored
4 years ago
by
Rolf Aas
Browse files
Options
Downloads
Patches
Plain Diff
Deploy to stage from develop
parent
96a38136
Branches
testing/frontend
Branches containing commit
No related tags found
1 merge request
!4
Develop
Pipeline
#113098
passed
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-2
24 additions, 2 deletions
.gitlab-ci.yml
with
24 additions
and
2 deletions
.gitlab-ci.yml
+
24
−
2
View file @
fabaeb76
...
...
@@ -9,6 +9,9 @@ stages:
build-job
:
stage
:
build
only
:
-
develop
-
master
script
:
-
echo "Running build"
-
cd backend/secfit
...
...
@@ -18,6 +21,9 @@ build-job:
test-backend
:
stage
:
test
only
:
-
develop
-
master
script
:
-
echo "Running Django tests on backend"
-
cd backend/secfit
...
...
@@ -28,21 +34,37 @@ test-backend:
test-frontend
:
stage
:
test
only
:
-
develop
-
master
script
:
-
echo "This is a placeholder for testing the frontend"
deploy-stage
:
image
:
ruby:latest
only
:
-
develop
stage
:
deploy
before_script
:
-
apt-get update -qy
-
apt-get install -y ruby-dev
-
gem install dpl
script
:
-
echo "Deploying to Heroku stage"
-
dpl --provider=heroku --app=$HEROKU_FRONTEND_APP_STAGE --api-key=$HEROKU_API_KEY
-
dpl --provider=heroku --app=$HEROKU_BACKEND_APP_STAGE --api-key=$HEROKU_API_KEY
deploy-prod
:
image
:
ruby:latest
only
:
-
master
-
pipeline
stage
:
deploy
before_script
:
-
apt-get update -qy
-
apt-get install -y ruby-dev
-
gem install dpl
script
:
-
echo "Deploying to Heroku"
-
echo "Deploying to Heroku
production
"
-
dpl --provider=heroku --app=$HEROKU_FRONTEND_APP_PRODUCTION --api-key=$HEROKU_API_KEY
-
dpl --provider=heroku --app=$HEROKU_BACKEND_APP_PRODUCTION --api-key=$HEROKU_API_KEY
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment