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
Kristoffer Håkon Håkonsen
tdt4242-base
Commits
a3878aed
Commit
a3878aed
authored
4 years ago
by
Pernille Nødtvedt Welle-Watne
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
e784606b
No related branches found
No related tags found
1 merge request
!3
Uc2 suggested workout frontend og backend
Pipeline
#113390
failed
4 years ago
Stage: deploy_backend
Stage: deploy_frontend
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-6
17 additions, 6 deletions
.gitlab-ci.yml
with
17 additions
and
6 deletions
.gitlab-ci.yml
+
17
−
6
View file @
a3878aed
variables
:
HEROKU_APP_NAME
:
tdt4242-base
HEROKU_
REGISTRY_IMAGE
:
registry.heroku.com/${HEROKU_APP_NAME}/web
HEROKU_APP_NAME
_BACKEND
:
tdt4242-base
HEROKU_
APP_NAME_FRONTEND
:
tdt4242-base-secfit
stages
:
# - test
-
deploy
-
deploy_backend
-
deploy_frontend
#test:
# image: python:3
...
...
@@ -16,12 +17,22 @@ stages:
# - pip install -r requirements.txt
# - python manage.py test
deploy
:
deploy
_backend
:
image
:
ruby
stage
:
deploy
stage
:
deploy
_backend
type
:
deploy
script
:
-
apt-get update -qy
-
apt-get install -y ruby ruby-dev
-
gem install dpl
-
dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_AUTH_TOKEN
\ No newline at end of file
-
dpl --provider=heroku --app=$HEROKU_APP_NAME_BACKEND --api-key=$HEROKU_AUTH_TOKEN_BACKEND
deploy_frontend
:
image
:
ruby
stage
:
deploy_frontend
type
:
deploy
script
:
-
apt-get update -qy
-
apt-get install -y ruby ruby-dev
-
gem install dpl
-
dpl --provider=heroku --app=$HEROKU_APP_NAME_FRONTEND --api-key=$HEROKU_AUTH_TOKEN_FRONTEND
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