diff --git a/.github/workflows/prod_deploy.yml b/.github/workflows/prod_deploy.yml index fe5c46e..2285ac7 100644 --- a/.github/workflows/prod_deploy.yml +++ b/.github/workflows/prod_deploy.yml @@ -35,10 +35,25 @@ jobs: mkdir deploy/scripts cp ./scripts/* ./deploy/scripts/ + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Docker login + run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + - name: Docker push run: | cd module-web - echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin docker build -t ${{ secrets.DOCKER_REPOSITORY_PROD }} . docker push ${{ secrets.DOCKER_REPOSITORY_PROD }} diff --git a/gradle.properties b/gradle.properties index 142aa16..3234f4c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,5 @@ okhttpVersion=4.10.0 awsJavaSdkVersion=1.12.281 jasyptVersion=3.0.4 sonarqubeVersion=3.4.0.2513 -jacocoVersion=0.8.8 \ No newline at end of file +jacocoVersion=0.8.8 +org.gradle.parallel=true \ No newline at end of file