mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
feat: super cool
This commit is contained in:
parent
2a7dbda73e
commit
f6dda5c99a
2 changed files with 72 additions and 32 deletions
75
.github/workflows/docker-publish.yml
vendored
75
.github/workflows/docker-publish.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Publish docker image
|
name: Release version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -18,33 +18,51 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4675eae74abbabc869298ca798833fef291ce30fb9edfac76787746e7d9d3904
|
- name: Codestyle
|
||||||
id: semantic
|
id: semantic
|
||||||
with:
|
run: |
|
||||||
branches: |
|
# Get the current branch name
|
||||||
[
|
CURRENT_BRANCH=$(git symbolic-ref -q HEAD)
|
||||||
'release-*',
|
CURRENT_BRANCH=${CURRENT_BRANCH##refs/heads/}
|
||||||
{
|
CURRENT_BRANCH=${CURRENT_BRANCH:-HEAD}
|
||||||
name: 'development',
|
echo "Current branch: $CURRENT_BRANCH"
|
||||||
prerelease: true
|
|
||||||
}
|
# Get a list of all tags in the repository
|
||||||
]
|
git fetch --prune --unshallow --tags
|
||||||
additional_packages: |
|
TAG_LIST=$(git tag)
|
||||||
[
|
echo "Available tags: $TAG_LIST"
|
||||||
"@semantic-release/changelog",
|
|
||||||
"@semantic-release/git"
|
# Get the messages of the last three commits on the current branch
|
||||||
]
|
COMMIT_MESSAGES=$(git log --pretty=format:%s -n 1)
|
||||||
plugins: |
|
echo "Last commit message:"
|
||||||
[
|
echo "$COMMIT_MESSAGES"
|
||||||
"@semantic-release/commit-analyzer",
|
#- uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4675eae74abbabc869298ca798833fef291ce30fb9edfac76787746e7d9d3904
|
||||||
"@semantic-release/changelog",
|
# id: semantic
|
||||||
"@semantic-release/git",
|
# with:
|
||||||
"@semantic-release/github",
|
# branches: |
|
||||||
"@semantic-release/release-notes-generator"
|
# [
|
||||||
]
|
# 'release-*',
|
||||||
dry_run: false
|
# {
|
||||||
env:
|
# name: 'development',
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# prerelease: true
|
||||||
|
# }
|
||||||
|
# ]
|
||||||
|
# additional_packages: |
|
||||||
|
# [
|
||||||
|
# "@semantic-release/changelog",
|
||||||
|
# "@semantic-release/git"
|
||||||
|
# ]
|
||||||
|
# plugins: |
|
||||||
|
# [
|
||||||
|
# "@semantic-release/commit-analyzer",
|
||||||
|
# "@semantic-release/changelog",
|
||||||
|
# "@semantic-release/git",
|
||||||
|
# "@semantic-release/github",
|
||||||
|
# "@semantic-release/release-notes-generator"
|
||||||
|
# ]
|
||||||
|
# dry_run: false
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
#- name: Login to GitHub Container Registry
|
#- name: Login to GitHub Container Registry
|
||||||
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
|
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
|
||||||
|
@ -74,6 +92,3 @@ jobs:
|
||||||
# #TODO: force_push_tag is true for debug purpose only
|
# #TODO: force_push_tag is true for debug purpose only
|
||||||
# force_push_tag: true
|
# force_push_tag: true
|
||||||
|
|
||||||
outputs:
|
|
||||||
version: ${{ steps.semantic.outputs.release-version }}
|
|
||||||
|
|
||||||
|
|
29
.github/workflows/gradle-build.yml
vendored
29
.github/workflows/gradle-build.yml
vendored
|
@ -8,7 +8,17 @@ env:
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
java_build:
|
style_checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: PR title check
|
||||||
|
run: echo "NIY"
|
||||||
|
- name: Codestyle
|
||||||
|
run: echo "NIY"
|
||||||
|
|
||||||
|
code_checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,10 +38,25 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
|
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
tags: ghcr.io/${{ env.IMAGE_NAME }}:test
|
tags: ghcr.io/${{ env.IMAGE_NAME }}:test
|
||||||
|
|
||||||
|
ort:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Use HTTPS instead of SSH for Git cloning
|
||||||
|
run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
|
||||||
|
- name: Checkout project
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: 'jshttp/mime-types'
|
||||||
|
- name: Run GitHub Action for ORT
|
||||||
|
uses: oss-review-toolkit/ort-ci-github-action@v1
|
||||||
|
with:
|
||||||
|
allow-dynamic-versions: 'true'
|
||||||
|
fail-on: 'violations'
|
||||||
|
|
Loading…
Reference in a new issue