pr-smoke-test-play-images.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: PR build Play images for smoke tests
  2. on:
  3. pull_request:
  4. paths:
  5. - 'smoke-tests/images/play/**'
  6. - '.github/workflows/pr-smoke-test-play-images.yml'
  7. jobs:
  8. build:
  9. uses: ./.github/workflows/reusable-smoke-test-images.yml
  10. with:
  11. build-root-directory: smoke-tests/images/play
  12. cache-read-only: true
  13. # Play doesn't support Java 16+ yet
  14. # https://github.com/playframework/playframework/pull/10819
  15. skip-java-17: true
  16. skip-java-18: true
  17. build-java-15:
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/checkout@v3
  21. - name: Set up JDK for running Gradle
  22. uses: actions/setup-java@v2
  23. with:
  24. distribution: temurin
  25. java-version: 17
  26. - name: Set up gradle cache
  27. uses: gradle/gradle-build-action@v2
  28. with:
  29. cache-read-only: true
  30. # Play doesn't support Java 16 (or 17) yet
  31. # https://github.com/playframework/playframework/pull/10819
  32. - name: Build Java 15 Docker Image
  33. run: ./gradlew jibDockerBuild -PtargetJDK=15 -Djib.httpTimeout=120000 -Djib.console=plain
  34. working-directory: smoke-tests/images/play