Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update precommit.yml #13

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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