-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.6 KB
/
main.yml
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
name: Master Workflow
on:
push:
branches:
- 'master'
jobs:
main:
name: Master Workflow Job
runs-on: ubuntu-latest
steps:
- name: Checkout CCloud Registry Actions
uses: actions/checkout@v1
- name: Maven settings configuration
env:
CCLOUD_ACTION_TOKEN: ${{ secrets.CCLOUD_ACTION_TOKEN }}
CCLOUD_ACTION_OWNER: ${{ secrets.CCLOUD_ACTION_OWNER }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
export CCLOUD_ACTION_OWNER=$(echo ${{ github.repository }} | awk -F / '{print tolower($1)}')
envsubst < .github/settings.template.xml > settings.xml
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Maven Unit Tests
working-directory: ./docker-actions/
run: |
./mvnw -B test jacoco:report \
coveralls:report -Dcoveralls.token=${{ secrets.COVERALLS_TOKEN }} -Dbranch=master
- name: Maven It Tests
working-directory: ./docker-actions/
run: ./mvnw -B integration-test -Dit.only
- name: Maven Deploy Jar Archive
working-directory: ./docker-actions/
run: ./mvnw -B -s ../settings.xml -DskipTests deploy
- name: Maven Deploy Docker Image (Docker Hub)
working-directory: ./docker-actions/
run: ./mvnw -B -s ../settings.xml -DskipTests jib:build@dockerhub-repo
- name: Maven Deploy Docker Image (Github Packages)
working-directory: ./docker-actions/
run: ./mvnw -B -s ../settings.xml -DskipTests jib:build@github-packages