-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.01 KB
/
maven.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
name: Java CI
on: [push]
jobs:
build:
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 with Maven
run: mvn -B package --file pom.xml
- name: Copy jar file
run: cp target/*.jar auth-service.jar
- uses: actions/upload-artifact@v1
with:
name: auth-service.jar
path: target/
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
name: auth-service.jar
path: target/
- name: Publish to registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: docker.pkg.github.com/300kks/auth-service/auth-service
username: ${{secrets.PKG_REGISTRY_USERNAME}}
password: ${{secrets.PKG_REGISTRY_PASSWORD}}
registry: docker.pkg.github.com