Skip to content

Commit

Permalink
build: Add releases
Browse files Browse the repository at this point in the history
  • Loading branch information
manquintero committed Oct 17, 2023
1 parent c6a9010 commit 8b8e852
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,39 @@ concurrency:
cancel-in-progress: true

jobs:
version:
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
steps:
- uses: actions/checkout@v4

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: true
fetch_all_tags: true

- uses: actions/github-script@v6
env:
VERSION: '${{ steps.tag_version.outputs.new_tag }}'
with:
script: |
/* Set Summary */
const microservices = ['python', 'java', 'node']
const header = [
{ data: 'Component', header: true },
{ data: 'Version', header: true }
]
core.summary
.addHeading('Building :gear:', (level = 2))
.addTable([header, ...microservices.map(m => [m, process.env.VERSION])])
.write()
python:
needs: [version]
uses: ./.github/workflows/python-app.yaml
permissions:
packages: write
Expand All @@ -19,6 +51,7 @@ jobs:
MICROSERVICE: vote

maven:
needs: [version]
uses: ./.github/workflows/maven-app.yaml
permissions:
packages: write
Expand All @@ -27,6 +60,7 @@ jobs:
MICROSERVICE: worker

node:
needs: [version]
uses: ./.github/workflows/node-app.yaml
permissions:
packages: write
Expand All @@ -36,6 +70,7 @@ jobs:
TRIVY_EXIT_CODE: '0'

test:
needs: [version]
uses: ./.github/workflows/container-build.yaml
with:
MICROSERVICE: tests
Expand All @@ -55,3 +90,10 @@ jobs:
e2e-test:
needs: [python, maven, node, test]
uses: ./.github/workflows/test-e2e.yaml

ready:
needs: [security, e2e-test]
runs-on: ubuntu-latest
steps:
- name: Generate Release
run: echo "Generate Release"

0 comments on commit 8b8e852

Please sign in to comment.