Skip to content

Commit

Permalink
Split Release CI workflow into two jobs.
Browse files Browse the repository at this point in the history
Running unit tests and the container build in separate jobs may reduce
storage use, at the cost of poorer caching.
  • Loading branch information
kfindeisen committed Aug 16, 2024
1 parent cac6c4e commit da99489
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ env:
BASE_TAG: "latest"

jobs:
build:
test:
name: Test service
runs-on: ubuntu-latest

if: >
Expand Down Expand Up @@ -58,6 +59,14 @@ jobs:
git config --global --add safe.directory /home/lsst/prompt_processing
scons'
build:
name: Build release image
needs: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
with:
Expand Down

0 comments on commit da99489

Please sign in to comment.