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

GitHub action docker build #536

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kenshih
Copy link
Contributor

@kenshih kenshih commented Dec 27, 2024

For your consideration…

A simple Github Action that will run on any PR to confirm the Dockerfile build and docker run still work.

Also adds a badge like this Docker Build when the main branch is passing. That is, it’s running the first docker command described in the README, and checking to see the output of the example/soundscape analysis is as expected.

e.g.

Screenshot 2024-12-26 at 10 01 12 PM


on:
push:
branches: [ main ]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This runs the test after merging in a PR or a direct push to main by maintainer.

- 'Dockerfile'
- '.github/workflows/docker-build.yml'
pull_request:
branches: [ main ]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This means, this Github Action with run if a pull request is made on main. So you can quickly evaluate whether the PR contains obvious breaking changes.

You can see a history of runs in the “Actions” tab on github. It looks something like this…
Screenshot 2024-12-26 at 10 15 17 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant