diff --git a/.github/workflows/ecr-push.yml b/.github/workflows/ecr-push.yml index 0fe7272..bde7b21 100644 --- a/.github/workflows/ecr-push.yml +++ b/.github/workflows/ecr-push.yml @@ -1,4 +1,4 @@ -name: Push to ECR +name: CD on: push: @@ -9,8 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + + - name: Build with Gradle + run: ./gradlew build - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 07907e8..813d759 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,8 +1,6 @@ name: Java CI with Gradle on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ]