diff --git a/.github/workflows/Build.yml b/.github/recipes/Build.yml similarity index 100% rename from .github/workflows/Build.yml rename to .github/recipes/Build.yml diff --git a/.github/workflows/DockerPublish.yml b/.github/recipes/DockerPublish.yml similarity index 96% rename from .github/workflows/DockerPublish.yml rename to .github/recipes/DockerPublish.yml index b2edd598..02f7926c 100644 --- a/.github/workflows/DockerPublish.yml +++ b/.github/recipes/DockerPublish.yml @@ -1,8 +1,7 @@ name: Publish Docker Image on: - release: - types: [ "released" ] + workflow_call: env: IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/keystone-api diff --git a/.github/workflows/QA.yml b/.github/recipes/QA.yml similarity index 100% rename from .github/workflows/QA.yml rename to .github/recipes/QA.yml diff --git a/.github/workflows/Test.yml b/.github/recipes/Test.yml similarity index 100% rename from .github/workflows/Test.yml rename to .github/recipes/Test.yml diff --git a/.github/workflows/PullRequest.yml b/.github/workflows/PullRequest.yml index 9f5505de..ed2064c9 100644 --- a/.github/workflows/PullRequest.yml +++ b/.github/workflows/PullRequest.yml @@ -6,17 +6,17 @@ on: jobs: build: name: Build - uses: ./.github/workflows/Build.yml + uses: ./.github/recipes/Build.yml test: name: Test needs: build - uses: ./.github/workflows/Test.yml + uses: ./.github/recipes/Test.yml qa: name: QA needs: build - uses: ./.github/workflows/QA.yml + uses: ./.github/recipes/QA.yml report-pr-status: name: Report PR Status diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 00000000..54e19547 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,23 @@ +name: Release + +on: + release: + types: [ "released" ] + +env: + IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/keystone-api + +jobs: + build: + name: Build + uses: ./.github/recipes/Build.yml + + test: + name: Test + needs: build + uses: ./.github/recipes/Test.yml + + docker: + name: Docker + needs: test + uses: ./.github/recipes/DockerPublish.yml