Skip to content

Commit

Permalink
Update precommit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbirdgit authored Aug 28, 2024
1 parent 6d5486f commit e6308d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
pull_request:
branches: [ "main" ]

jobs:
jobs:
# Determine the branch name to append to docker image
determine-branch:
runs-on: ubuntu-latest
outputs:
Expand All @@ -26,7 +27,8 @@ jobs:
- name: Print Final Branch Name
run: |
echo "Branch Name: ${{ steps.get_branch.outputs.branch_name }}"
# Get the short SHA to append to docker image
get-short-sha:
runs-on: ubuntu-latest
outputs:
Expand All @@ -50,8 +52,10 @@ jobs:
build:
strategy:
matrix:
# Build multiple images for each change
service_name: ["hw-ui-service", "hw-ui-service2"]
needs: [get-short-sha, determine-branch]
# Use reusuable workflow and build multiple nodejs services
uses: thunderbirdgit/gh-actions-wf/.github/workflows/nodejs-build.yml@main
with:
service_name: ${{matrix.service_name}}
Expand Down

0 comments on commit e6308d0

Please sign in to comment.