mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
chore: test ci
This commit is contained in:
parent
1353c1e3a6
commit
507aa900c3
2 changed files with 18 additions and 9 deletions
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
|
@ -54,14 +54,14 @@ jobs:
|
|||
id: meta
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ghcr.io/${{ vars.GITHUB_REPOSITORY }}
|
||||
images: ghcr.io/${GITHUB_REPOSITORY}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ghcr.io/${{ vars.GITHUB_REPOSITORY }}:${{ steps.semantic.outputs.release-version }}
|
||||
tags: ghcr.io/${GITHUB_REPOSITORY}:${{ steps.semantic.outputs.release-version }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Publish tag
|
||||
|
|
23
.github/workflows/gradle-build.yml
vendored
23
.github/workflows/gradle-build.yml
vendored
|
@ -5,21 +5,30 @@ on:
|
|||
branches: [ development, release/** ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
java_build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ '17' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK ${{matrix.java}}
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: ${{matrix.java}}
|
||||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
distribution: 'temirin'
|
||||
- name: Test
|
||||
run: ./gradlew test
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
|
||||
docker_build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
push: false
|
||||
tags: ghcr.io/${ GITHUB_REPOSITORY }:test
|
||||
|
|
Loading…
Reference in a new issue