CHORE - Update version of the application to 1.0.1 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |