-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.58 KB
/
deliver-application.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
52
53
54
55
name: Deliver application
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: maven
- name: Build artifact with Maven
run: mvn -B -U package -DskipTests
- name: Release artifact
uses: softprops/action-gh-release@v1
with:
body: Version ${{ github.ref_name }} of the OpenFusion OpenAPI Plugin.
body_path: ./CHANGELOG.md
files: |
target/openfusion-openapi-plugin-*.jar
fail_on_unmatched_files: true
generate_release_notes: true
draft: false
prerelease: false
push-docker-image:
runs-on: ubuntu-latest
strategy:
matrix:
docker-repository: [juansecu/openfusion-openapi-plugin]
steps:
- uses: actions/checkout@v3
- name: Make mvnw executable
run: chmod +x mvnw
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ matrix.docker-repository }}:${{ github.ref_name }},${{ matrix.docker-repository }}:latest