Skip to content

Commit

Permalink
Add build and package on push to PR branch
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpartridge committed Feb 6, 2025
1 parent c1d97d6 commit 7fa2bf7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-and-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build and Package

on:
push: # TEMP
branches: carl/BCDA-8633-build-bcda-on-ami
workflow_call:
inputs:
release_version:
Expand Down Expand Up @@ -49,11 +51,13 @@ jobs:
- name: Quality Checks
uses: ./.github/workflows/quality-checks.yml
with:
release_version: ${{ inputs.release_version }}
# release_version: ${{ inputs.release_version }}
release_version: carl/BCDA-8633-build-bcda-on-ami
- name: Package BCDA and Worker RPMs
uses: ./.github/workflows/package-rpm.yml
with:
release_version: ${{ inputs.release_version }}
# release_version: ${{ inputs.release_version }}
release_version: carl/BCDA-8633-build-bcda-on-ami
# TODO: junit 'bcda-ssas-app/test_results/latest/junit.xml'
# TODO: Do we need all/any of the following 3 steps (create docker version, upload, clean up)?
- name: Log created docker images as build artifacts
Expand Down Expand Up @@ -86,7 +90,7 @@ jobs:
channel: "C03S23MJFJS"
attachments:
- color: good
text: "SUCCESS: Build and Package BCDA/Worker (run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }})>"
text: "SUCCESS: Build and Package SSAS (run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }})>"
mrkdown_in:
- text
- name: Failure Alert
Expand All @@ -100,7 +104,7 @@ jobs:
channel: "C034CFU945C"
attachments:
- color: danger
text: "FAILURE: Build and Package BCDA/Worker (run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }})>"
text: "FAILURE: Build and Package SSAS (run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }})>"
mrkdown_in:
- text
- name: Cleanup secrets
Expand Down

0 comments on commit 7fa2bf7

Please sign in to comment.