Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
T
test-cicd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACHRAF HARIMZA
test-cicd
Commits
ae557388
Commit
ae557388
authored
Sep 26, 2022
by
ACHRAF HARIMZA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
18f11402
Pipeline
#280
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
41 deletions
+5
-41
.gitlab-ci.yml
.gitlab-ci.yml
+5
-41
No files found.
.gitlab-ci.yml
View file @
ae557388
#name: Maven CI/CD
heroku_deploy
:
stage
:
production
script
:
-
gem install dpl
-
dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_API_KEY
on
:
push
:
branches
:
[
main
]
pull_request
:
branches
:
[
main
]
#jobs:
build_and_test
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up JDK
17
uses
:
actions/setup-java@v1
with
:
java-version
:
17
-
name
:
Build project with Maven
run
:
mvn -B package --file pom.xml
-
name
:
Deploy to Heroku.
# Your custom step name
uses
:
gonuit/heroku-docker-deploy@v1.3.3
# GitHub action name (leave it as it is).
with
:
# Below you must provide variables for your Heroku app.
# The email address associated with your Heroku account.
# If you don't want to use repository secrets (which is recommended) you can do:
# email: my.email@example.com
email
:
${{ secrets.HEROKU_EMAIL }}
# Heroku API key associated with provided user's email.
# Api Key is available under your Heroku account settings.
heroku_api_key
:
${{ secrets.HEROKU_API_KEY }}
# Name of the heroku application to which the build is to be sent.
heroku_app_name
:
${{ secrets.HEROKU_APP_NAME }}
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