Skip to content

Commit

Permalink
refactor(ci): split docker build and sbt tests (#6)
Browse files Browse the repository at this point in the history
We don't want to trigger a docker build on every source code change
  • Loading branch information
datYori authored Oct 1, 2024
1 parent 3724667 commit 1adfa29
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,3 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sbt clean test
docker-buid:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- run: .github/scripts/dnd-sbt docker/Docker/publishLocal
16 changes: 16 additions & 0 deletions .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Docker CI
on:
pull_request:
paths:
- .github/workflows/docker-ci.yaml
- build.sbt

env:
GITHUB_TOKEN: ${{ secrets.READ_PACKAGES }}

jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- run: .github/scripts/dnd-sbt docker/Docker/publishLocal

0 comments on commit 1adfa29

Please sign in to comment.