Skip to content

Commit

Permalink
ci(docker): do not track state on npm tasks when docker images are re…
Browse files Browse the repository at this point in the history
…leased
  • Loading branch information
kelvin-olaiya committed Aug 28, 2024
1 parent 9bae2d5 commit c224b00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ jobs:
- compute-next-version
- release
runs-on: ubuntu-latest
env:
DOCKER_RELEASE: true
if: >-
!github.event.repository.fork
&& (
Expand Down
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/configure-npm.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Microservices.FRONTEND
import Microservices.MONITORING
import io.github.kelvindev15.gradle.NpmTask

plugins {
id("io.github.kelvindev15.npm-gradle-plugin")
Expand Down Expand Up @@ -83,3 +84,9 @@ tasks.named("clean") {
tasks.register("build") {
dependsOn("npmBuild")
}

tasks.withType<NpmTask>().configureEach {
if(System.getenv("DOCKER_RELEASE") == "true") {
doNotTrackState("docker multiplatform build messes up with inputs and outputs")
}
}

0 comments on commit c224b00

Please sign in to comment.