Skip to content

Bump io.swagger.core.v3:swagger-annotations from 2.2.16 to 2.2.17 #32

Bump io.swagger.core.v3:swagger-annotations from 2.2.16 to 2.2.17

Bump io.swagger.core.v3:swagger-annotations from 2.2.16 to 2.2.17 #32

Workflow file for this run

name: Publish Image to Docker
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Write release version
run: VERSION=${GITHUB_REF_NAME#v}; echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Set release version POMs
run: ./mvnw --no-transfer-progress --batch-mode versions:set -DnewVersion=${VERSION}
- name: Set release version package.json
working-directory: naikan-client
run: npm version ${VERSION}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Perform release ${{ env.VERSION }}
- name: Maven package
run: ./mvnw --no-transfer-progress --batch-mode clean package
- name: Docker build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
enofex/naikan:${{ env.VERSION }}
enofex/naikan:latest
labels: |
org.opencontainers.image.title=Naikan
org.opencontainers.image.description=Naikan is a software inventory management tool driven by our CI/CD pipeline.
org.opencontainers.image.vendor=Enofex
org.opencontainers.image.version=${{ env.VERSION }}
org.opencontainers.image.url=https://enofex.com
org.opencontainers.image.source=https://github.com/enofex/naikan
org.opencontainers.image.licenses=MIT license
- name: Set next version POMs
run: ./mvnw --no-transfer-progress --batch-mode build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
- name: Set next version package.json
working-directory: naikan-client
run: npm run-script sync-pom-version
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Prepare for next release
tags: true