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

Use docker/build-push-action default behavior #217

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull request removes using the actions/checkout Action from the build and build-push-all steps as well as removing the context and file arguments to the docker/build-push-action Action.

💭 Motivation and context

I was doing some research on Docker Bake and ran into a comment in the docker/bake-action documentation that mentioned using the git context to pull data just like the docker/build-push-action Action and confirmed that from the README. Since we removed the adjusted Dockerfile-fu in #211 it makes sense to further simplify these jobs.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

Instead of overriding the context and file we can allow the Action to
fall back on its default behaviour of using the `git` context to pull
the source needed to build the image. This also allows us to remove the
actions/checkout Action from the `build` and `build-push-all` jobs.
@mcdonnnj mcdonnnj added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use github-actions Pull requests that update GitHub Actions code labels Feb 20, 2025
@mcdonnnj mcdonnnj requested a review from a team February 20, 2025 00:34
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

Noice 👍

@mcdonnnj mcdonnnj added this pull request to the merge queue Feb 20, 2025
@mcdonnnj mcdonnnj self-assigned this Feb 20, 2025
@mcdonnnj mcdonnnj added the kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release label Feb 20, 2025
Merged via the queue into develop with commit f85efbb Feb 20, 2025
17 checks passed
@mcdonnnj mcdonnnj deleted the improvement/streamline_image_build_jobs branch February 20, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github-actions Pull requests that update GitHub Actions code improvement This issue or pull request will add or improve functionality, maintainability, or ease of use kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release
Projects
Development

Successfully merging this pull request may close these issues.

4 participants