Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-ex2
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
Jørgen Hollum
tdt4242-ex2
Commits
5fc3cb61
Commit
5fc3cb61
authored
3 years ago
by
hollum
Browse files
Options
Downloads
Patches
Plain Diff
yml
parent
5dfa3656
Branches
backend/profile
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#154444
failed
3 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/main.yml
+0
-30
0 additions, 30 deletions
.github/workflows/main.yml
gitlab-ci.yml
+25
-0
25 additions, 0 deletions
gitlab-ci.yml
with
25 additions
and
30 deletions
.github/workflows/main.yml
deleted
100644 → 0
+
0
−
30
View file @
5dfa3656
name
:
Main
on
:
push
:
branches
:
-
master
jobs
:
test
:
name
:
test
runs-on
:
ubuntu-latest
container
:
python:3.8
defaults
:
run
:
shell
:
bash
working-directory
:
./backend/secfit
steps
:
-
run
:
apt-get update -qy
-
run
:
pip install -r requirements.txt
staging
:
name
:
staging
runs-on
:
ubuntu-latest
container
:
ruby
needs
:
[
test
]
steps
:
-
run
:
apt-get update -qy
-
run
:
apt-get install -y ruby-dev
-
run
:
gem install dpl
-
run
:
dpl --provider=heroku --app=tdt4242-base-frontend --api-key=${{secrets.HEROKU_STAGING_API_KEY}}
-
run
:
dpl --provider=heroku --app=tdt4242-base-backend --api-key=${{secrets.HEROKU_STAGING_API_KEY}}
This diff is collapsed.
Click to expand it.
gitlab-ci.yml
0 → 100644
+
25
−
0
View file @
5fc3cb61
stages
:
-
test
-
staging
test
:
image
:
python:3.8
stage
:
test
script
:
# this configures Django application to use attached postgres database that is run on `postgres` host
-
cd backend/secfit
-
apt-get update -qy
-
pip install -r requirements.txt
staging
:
type
:
deploy
image
:
ruby
stage
:
staging
script
:
-
apt-get update -qy
-
apt-get install -y ruby-dev
-
gem install dpl
-
dpl --provider=heroku --app=tdt4242-base-frontend --api-key=$HEROKU_STAGING_API_KEY
-
dpl --provider=heroku --app=tdt4242-base-backend --api-key=$HEROKU_STAGING_API_KEY
only
:
-
master
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