mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Artifact test 1
This commit is contained in:
parent
d5f4552661
commit
8b9df9b70e
3 changed files with 16 additions and 26 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -64,7 +64,7 @@ jobs:
|
|||
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
|
||||
|
||||
publish-artifact:
|
||||
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -84,4 +84,15 @@ jobs:
|
|||
with:
|
||||
name: Package
|
||||
path: build/libs
|
||||
|
||||
|
||||
|
||||
- name: Upload artifact for deployment job
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: java-app
|
||||
path: '${{ github.workspace }}/target/*.jar'
|
||||
|
||||
- name: Download artifact from build job
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: java-app
|
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
|
@ -1,21 +0,0 @@
|
|||
name: Upload and Deploy Artifact from build pipeline
|
||||
|
||||
on:
|
||||
workflow_call
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Upload artifact for deployment job
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: java-app
|
||||
path: '${{ github.workspace }}/target/*.jar'
|
||||
|
||||
- name: Download artifact from build job
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: java-app
|
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -27,6 +27,6 @@ jobs:
|
|||
name: "Call build workflow"
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
||||
my_third_job:
|
||||
name: "Upload and Download artifact file"
|
||||
uses: ./.github/workflows/deploy.yml
|
||||
# my_third_job:
|
||||
# name: "Upload and Download artifact file"
|
||||
# uses: ./.github/workflows/deploy.yml
|
||||
|
|
Loading…
Reference in a new issue