Skip to content

Commit

Permalink
fix(workflows): remove condition check (#55)
Browse files Browse the repository at this point in the history
* fix(workflows): remove condition checks for packer build workflow trigger

* feat: simplify dibbs-vm building, add info to run-name
  • Loading branch information
alismx authored Mar 3, 2025
1 parent 4412122 commit 2b33bee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/dibbsVm.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build dibbs-vm
run-name: Build dibbs-vm triggered by @${{ github.actor }}
run-name: Build dibbs-vm triggered by @${{ github.actor }} for ${{ github.event.client_payload.service }}:${{ github.event.client_payload.version }}

on:
repository_dispatch:
Expand All @@ -10,23 +10,8 @@ permissions:

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract service and version
id: extract
run: |
service="${{ github.event.client_payload.service }}"
version="${{ github.event.client_payload.version }}"
echo "::set-output name=service::$service"
echo "::set-output name=version::$version"
- name: Build dibbs-vm for dibbs-ecr-viewer
uses: ./.github/workflows/packMachines.yml
with:
service: ${{ steps.extract.outputs.service }}
version: ${{ steps.extract.outputs.version }}
build_dibbs_service:
uses: ./.github/workflows/packMachines.yml
with:
service: ${{ github.event.client_payload.service }}
version: ${{ github.event.client_payload.version }}
2 changes: 1 addition & 1 deletion .github/workflows/packMachines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: packer build --var dibbs_service=dibbs-query-connector --var dibbs_version=main .

packer_build_workflows:
if: (needs.workflow_changes.outputs.has_changes == 'true' || needs.packer_changes.outputs.has_changes == 'true') && (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch')
if: (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 2b33bee

Please sign in to comment.