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

Automate container build #16

Merged
merged 3 commits into from
Feb 23, 2022
Merged

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Feb 15, 2022

https://github.com/bdunne/container-amazon-smartstate/actions?query=branch%3Aadd_github_actions

  • Add Github actions
  • Upgrade to ruby 2.7
  • Fix container build, it was failing to bundle due to an incompatible version of bundler
  • Consolidate common RPM install into the base image

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@Fryguy
Copy link
Member

Fryguy commented Feb 15, 2022

I added https://github.com/bdunne/container-amazon-smartstate/actions?query=branch%3Aadd_github_actions to the OP so we can see it go green before merging.

- It was failing to build due to an incompatible version of bundler
- move common package install up to base image
echo "REGISTRY_USERNAME=${{ secrets.REGISTRY_USERNAME }}" >> $GITHUB_ENV
echo "REGISTRY_PASSWORD=${{ secrets.REGISTRY_PASSWORD }}" >> $GITHUB_ENV
- name: Run container build script
run: bin/build_container_image
Copy link
Member

Choose a reason for hiding this comment

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

Not for this PR, but I think it would be helpful to split the build into separate build and deploy steps. This way, from GHA, we can gate the deploy separate from the build, and it's less "magical" looking as to what's happening.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 That sounds like a good followup since it will apply to several repos

Dockerfile Show resolved Hide resolved
Co-authored-by: Jason Frey <fryguy9@gmail.com>
@Fryguy Fryguy merged commit 4692b75 into ManageIQ:master Feb 23, 2022
@bdunne bdunne deleted the add_github_actions branch February 23, 2022 23:16
@Fryguy
Copy link
Member

Fryguy commented May 9, 2022

Backported to najdorf in commit 122eae3.

commit 122eae3de5d0fa76f10cec577a4330f4dc12e666
Author: Jason Frey <fryguy9@gmail.com>
Date:   Wed Feb 23 08:57:51 2022 -0500

    Merge pull request #16 from bdunne/add_github_actions
    
    Automate container build
    
    (cherry picked from commit 4692b75cecfa16ce81610723251d9ed1f3ce14fc)

Fryguy added a commit that referenced this pull request May 9, 2022
Automate container build

(cherry picked from commit 4692b75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants