-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (62 loc) · 1.81 KB
/
Copy pathmaster.yml
File metadata and controls
66 lines (62 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Master CICD
on:
push:
branches: [ master ]
jobs:
build:
name: Build native application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build native with Maven
run: mvn -B package -Pnative -Dquarkus.native.container-build=true
- name: Upload target for next job
uses: actions/upload-artifact@v1
with:
name: target
path: target
deploy_to_heroku:
name: Deploy to Heroku
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Download target from previous job
uses: actions/download-artifact@v4.1.7
with:
name: target
- name: Login into Heroku
uses: actions/heroku@master
with:
args: container:login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ secrets.HEROKU_APP }}
- name: Build and Push to Heroku Registry
uses: actions/heroku@master
with:
args: container:push web
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ secrets.HEROKU_APP }}
- name: Trigger release in Heroku
uses: actions/heroku@master
with:
args: container:release web
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ secrets.HEROKU_APP }}
integration_tests:
name: Run integration tests
runs-on: ubuntu-latest
needs: [build, deploy_to_heroku]
steps:
- uses: actions/checkout@v2
- uses: matt-ball/newman-action@master
with:
collection: integrationtests/quarkus-github-flow.postman_collection.json
environment: integrationtests/env/quarkus-github-flow-test.postman_environment.json