Skip to content

Commit

Permalink
Add actions for assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperStep committed Feb 8, 2024
1 parent 5e5a548 commit 5b03344
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/assemble.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build Gradle project
on:
push:
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew assemble
23 changes: 23 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: superstep/node-scope:latest
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ tasks.register('copyReactApp', Copy) {
}

bootJar.dependsOn(copyReactApp)
bootJar {
mainClass = 'dev.gordeev.backend.BackendApplication'
}
jar {
enabled = false
}

configurations {
compileOnly {
Expand Down Expand Up @@ -70,4 +76,4 @@ tasks.named('test') {
testLogging {
events "passed"
}
}
}

0 comments on commit 5b03344

Please sign in to comment.