Skip to content

[Snyk] Security upgrade org.springdoc:springdoc-openapi-ui from 1.6.4 to 1.8.0 #50

[Snyk] Security upgrade org.springdoc:springdoc-openapi-ui from 1.6.4 to 1.8.0

[Snyk] Security upgrade org.springdoc:springdoc-openapi-ui from 1.6.4 to 1.8.0 #50

name: Build crAPI identity service
on:
pull_request:
paths:
- '.github/workflows/build-and-release-crapi-identity.yml'
- 'crAPI/services/identity/**'
push:
paths:
- '.github/workflows/build-and-release-crapi-identity.yml'
- 'crAPI/services/identity/**'
branches:
- main
tags:
- v*
workflow_dispatch:
jobs:
build-identity-image:
if: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build image
uses: aevea/action-kaniko@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
image: levoai/crapi-identity
path: ./crAPI/services/identity
tag: latest
cache: true
# Don't push the image, just build it to validate it.
extra_args: "--no-push --cache-repo levoai/crapi-identity-cache"
push-latest-identity-image:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Latest image push
uses: aevea/action-kaniko@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
image: levoai/crapi-identity
path: ./crAPI/services/identity
tag: latest
cache: true
extra_args: "--cache-repo levoai/crapi-identity-cache"
release-identity-image:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Tagged image push
uses: aevea/action-kaniko@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
image: levoai/crapi-identity
path: ./crAPI/services/identity
strip_tag_prefix: v
cache: true
extra_args: "--cache-repo levoai/crapi-identity-cache"