Skip to content

Commit

Permalink
Simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzAve committed Jan 9, 2025
1 parent d7a0358 commit 8da33e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 36 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/build.yml

This file was deleted.

14 changes: 12 additions & 2 deletions .github/workflows/gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ jobs:
node-version: 16
cache: "npm"

- name: Ktlint
run: ./mvnw -B ktlint:check

- run: npm ci
- name: Eslint / prettier
run: npm run lint

- name: Full build
run: ./mvnw -B package

- name: Build and Deploy
run: ./mvnw -B compile -P frontend jib:build -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday -Djib.to.tags=${{ github.sha }} --file pom.xml
run: ./mvnw -B compile jib:build -Pfrontend -Dnpm.ci.skip -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday -Djib.to.tags=${{ github.sha }} --file pom.xml

- name: Build and Deploy Development version
run: ./mvnw -B compile -P develop -P frontend jib:build -Djib.container.environment=SPRING_PROFILES_ACTIVE=develop -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday-develop -Djib.to.tags=${{ github.sha }} --file pom.xml
run: ./mvnw -B compile jib:build -Pdevelop,frontend -Dnpm.ci.skip -Dnpm.skip -Djib.container.environment=SPRING_PROFILES_ACTIVE=develop -Djib.to.image=eu.gcr.io/flock-community/flock-eco-workday-develop -Djib.to.tags=${{ github.sha }} --file pom.xml
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<kotlin.version>1.9.22</kotlin.version>
<gpg.skip>true</gpg.skip>
<wirespec.version>0.8.51</wirespec.version>
<npm.ci.skip>false</npm.ci.skip>
</properties>

<dependencies>
Expand Down Expand Up @@ -333,6 +334,7 @@
</goals>
<configuration>
<arguments>ci</arguments>
<skip>${npm.ci.skip}</skip>
</configuration>
</execution>
<execution>
Expand Down

0 comments on commit 8da33e4

Please sign in to comment.