Skip to content

Commit

Permalink
Change CI docker build to use just
Browse files Browse the repository at this point in the history
  • Loading branch information
naegelejd committed Oct 14, 2024
1 parent b3c5750 commit 04e1f38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/mrd_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up just command runner
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6
- name: Build and test Docker images
run: |
./docker/build-images.sh
./docker/test-docker-images.sh
run: just build-docker-images && just test-docker-images

publishDocs:
name: Publish Documentation
Expand Down Expand Up @@ -162,5 +162,7 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
- name: Set up just command runner
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6
- name: Push Docker images
run: ./docker/build-images.sh --tag "${GITHUB_REF_NAME}" --push
run: just build-docker-images --tag "${GITHUB_REF_NAME}" --push
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ validate-with-no-changes: validate
@build-cmake-fetch-src:
tar -czf mrd-cmake-src-${MRD_VERSION_STRING}.tar.gz -C ./cpp/ CMakeLists.txt mrd/ mrd-tools/

@build-docker-images:
./docker/build-images.sh
@build-docker-images *PARAMETERS:
./docker/build-images.sh {{PARAMETERS}}

@test-docker-images:
./docker/test-docker-images.sh

0 comments on commit 04e1f38

Please sign in to comment.