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

fix(workflows): remove dupe, update workflows for bulding main, workflow_dispatch, repo_dispatch 🥟 #56

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

alismx
Copy link
Collaborator

@alismx alismx commented Mar 5, 2025

Changes Proposed

  • This PR modifies the packMachines.yml workflow file.
  • The PR also removed dibbsVm.yml file, we can just put the repo dispatch where we need it
  • Update how we install the qemu package
    • This is probably worth revisiting as we expand to support other sources (I wasn't able to get the docker-setup-qemu action to work in this context, if anybody knows how to fix this issue LMK!)

Additional Information

  • When we build:
    • pushes to main
    • changes in the packer or .github dirs
    • repo dispatch
    • workflow dispatch

Testing

alismx added 4 commits March 5, 2025 11:54
Update GitHub workflows to incorporate repository dispatch and workflow dispatch for service builds. Refactor packer job configuration for both - changes trigger and specific service build. Add service and version as configurable dispatch inputs.
@alismx alismx force-pushed the alis/workflow_fix_1 branch 6 times, most recently from 6e1effe to ae5adb0 Compare March 5, 2025 20:24
@alismx alismx changed the title fix(workflows): remove condition checks for packer build workflow tri… fix(workflows): remove dupe, update workflows for bulding main, workflow_dispatch, repo_dispatch Mar 5, 2025
@alismx alismx changed the title fix(workflows): remove dupe, update workflows for bulding main, workflow_dispatch, repo_dispatch fix(workflows): remove dupe, update workflows for bulding main, workflow_dispatch, repo_dispatch 🥟 Mar 5, 2025
@alismx alismx self-assigned this Mar 5, 2025
@alismx alismx added this to the DIBBs-In-A-Box! milestone Mar 5, 2025
@alismx alismx added Cloud Enablement Cloud Enablement DevOps Streamline eCR Streamline eCR Query Connector Query Connector labels Mar 5, 2025
Copy link
Collaborator

@rin-skylight rin-skylight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Thank you for getting our build process ironed out!

- uses: actions/checkout@v4

- name: Set up Packer
uses: hashicorp/setup-packer@1aa358be5cf73883762b302a3a03abd66e75b232
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random question...(non-blocking, no action required)...is there a reason why we're using the hash value for this instead of a version? I noticed this pop up, and I wasn't sure if it was intentional or a new best practice that I missed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The practice of using the commit hash does seem to be preferred these days. This was changed because of this alert: https://github.com/CDCgov/dibbs-vm/security/code-scanning/7

We may want to decide how to approach this as a team, but I have started pinning with a commit hashes.

# Needed for ISO builder
- name: Set up QEMU
uses: docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25
# - name: Set up QEMU
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for all the trouble on this...I should have tested before I threw this in as a framework. 😭

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries!

Copy link
Collaborator

@EmmanuelNwa247 EmmanuelNwa247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me... Great work Alis

@alismx alismx force-pushed the alis/workflow_fix_1 branch from ae5adb0 to ffc0541 Compare March 6, 2025 18:27
@alismx alismx merged commit 8c328df into main Mar 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cloud Enablement Cloud Enablement DevOps Query Connector Query Connector Streamline eCR Streamline eCR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants