Skip to content

Commit 0509379

Browse files
authored
[ENHANCEMENT] ci: Build docker images on PRs, release, and develop (#5064)
<!-- Thanks for your contribution! As part of our Community Growers initiative 🌱, we're donating Justdiggit bunds in your name to reforest sub-Saharan Africa. To claim your Community Growers certificate, please contact David Berenstein in our Slack community or fill in this form https://tally.so/r/n9XrxK once your PR has been merged. --> # Description Improves the CI pipeline by building docker images only when: - A push to `develop` or `main` event is triggered - A manual event (dispatch) is triggered - A PR event is triggered **Type of change** (Please delete options that are not relevant. Remember to title the PR according to the type of change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Refactor (change restructuring the codebase without changing functionality) - [ ] Improvement (change adding some improvement to an existing functionality) **How Has This Been Tested** (Please describe the tests that you ran to verify your changes. And ideally, reference `tests`) - [ ] Test A - [ ] Test B **Checklist** - [ ] I added relevant documentation - [ ] I followed the style guidelines of this project - [ ] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [ ] I have added relevant notes to the `CHANGELOG.md` file (See https://keepachangelog.com/)
1 parent 301ae12 commit 0509379

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/argilla-server.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ on:
1515
- releases/**
1616

1717
pull_request:
18-
paths:
19-
- argilla-server/**
2018

2119
jobs:
2220
build:
@@ -113,6 +111,11 @@ jobs:
113111
build_docker_images:
114112
name: Build docker images
115113
uses: ./.github/workflows/argilla-server.build-docker-images.yml
114+
if: |
115+
github.ref == 'refs/heads/main'
116+
|| github.ref == 'refs/heads/develop'
117+
|| github.event_name == 'workflow_dispatch'
118+
|| github.event_name == 'pull_request'
116119
needs:
117120
- build
118121
with:

0 commit comments

Comments
 (0)