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

Initial attempt at Github Actions #235

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Dec 17, 2021

Part of: ManageIQ/manageiq#21620

I'll open a follow-up to remove the Travis config

@bdunne bdunne added the test label Dec 17, 2021
echo "REGISTRY_PASSWORD=${{ secrets.REGISTRY_PASSWORD }}" >> $GITHUB_ENV
echo "REGISTRY_USERNAME=${{ secrets.REGISTRY_USERNAME }}" >> $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.

Is this doing a build on pull requests in addition to pushes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it builds on every PR, but only pushes to the registry on merges

Copy link
Member Author

Choose a reason for hiding this comment

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

I split it so that the credentials shouldn't even show up on PR run.

@bdunne bdunne force-pushed the initial_github_actions branch from cb688d0 to 4c20866 Compare December 17, 2021 21:00
@miq-bot
Copy link
Member

miq-bot commented Dec 17, 2021

Checked commit bdunne@4c20866 with ruby 2.6.3, rubocop 1.13.0, haml-lint 0.35.0, and yamllint
1 file checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

run: |
echo "TRAVIS_PULL_REQUEST=${{ github.base_ref == '' && 'false' || 'true' }}" >> $GITHUB_ENV
- name: Set up registry credentials
if: ${{ github.base_ref == '' }}
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing this is the "if not a PR" logic, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's the closest thing I could find for it.

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

LGTM. :shipit:

@jrafanie jrafanie merged commit f7ad87c into ManageIQ:master Dec 17, 2021
@jrafanie jrafanie self-assigned this Dec 17, 2021
@bdunne bdunne deleted the initial_github_actions branch December 17, 2021 21:19
@Fryguy
Copy link
Member

Fryguy commented Jan 25, 2022

Backported to morphy in commit 64c31c3.

commit 64c31c3d6854bab2d1abdc5678e8f1b7f42b00e0
Author: Joe Rafaniello <[email protected]>
Date:   Fri Dec 17 16:18:22 2021 -0500

    Merge pull request #235 from bdunne/initial_github_actions
    
    (cherry picked from commit f7ad87c566f0f7c64e3ff678b6fb7c4773704f5d)

Fryguy pushed a commit that referenced this pull request Jan 25, 2022
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.

4 participants