Skip to content

Commit

Permalink
Change when Docker tests are run (#5)
Browse files Browse the repository at this point in the history
## What
This limits when Docker tests are run:
- On pushes to `main`
- On pushes to branches that have a pull request associated to them, and
when said PR is opened

## Why
It's silly to run these tests on GitHub before I've opened a PR on
GitHub, because until I've done so I'm obviously not looking at GitHub
and I may push several times, which would mean running a bunch of
workflows I won't look at...

## Testing
None; this won't really have an effect until merged so I just hope I got
it right 😅

Edit: nah silly me, I can see that it was triggered when I opened this!
All good (just have to make sure the push to `main` also triggers it
tho)
  • Loading branch information
vicnett authored Nov 2, 2024
1 parent 2cbffad commit a4ffb5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build Docker image

on:
push:
branches: [main]

pull_request:

jobs:
docker:
Expand Down

0 comments on commit a4ffb5c

Please sign in to comment.