Skip to content

Commit c322065

Browse files
Deploy to Heroku staging configuration
Add configuration files to build and deploy the banking-on-clojure application onto Heroku via CircleCI. Code is pushed to the staging application on Heroku for user acceptance testing and if all is good it can be promoted to live.
1 parent 2e07e8a commit c322065

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

.circleci/config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ version: 2.1 # circleci configuration version
22

33
orbs:
44
kaocha: lambdaisland/[email protected] # Org settings > Security > uncertified orbs
5+
heroku: circleci/[email protected]. # Invoke the Heroku orb
6+
7+
workflows:
8+
heroku_deploy:
9+
jobs:
10+
- build
11+
- heroku/deploy-via-git: # Use the pre-configured job, deploy-via-git
12+
requires:
13+
- build
14+
filters:
15+
branches:
16+
only: live
517

618
jobs: # basic units of work in a run
719
build: # runs not using Workflows must have a `build` job as entry point

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: java -jar banking-on-clojure.jar $PORT

bin/build

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
clojure -A:uberjar

project.clj

Whitespace-only changes.

system.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java.runtime.version=11

0 commit comments

Comments
 (0)