build-test-matrix.yaml 879 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Build test matrix images
  2. on:
  3. push:
  4. paths:
  5. - 'smoke-tests/matrix/**'
  6. - '.github/workflows/build-test-matrix.yaml'
  7. branches: 'master'
  8. workflow_dispatch:
  9. jobs:
  10. publish:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up JDK 11 for running Gradle
  15. uses: actions/setup-java@v1
  16. with:
  17. java-version: 11
  18. - name: Cache gradle dependencies
  19. uses: burrunan/gradle-cache-action@v1.5
  20. with:
  21. job-id: matrix-smoke
  22. - name: Login to GitHub Package Registry
  23. uses: docker/login-action@v1
  24. with:
  25. registry: ghcr.io
  26. username: ${{ github.repository_owner }}
  27. password: ${{ secrets.GHCR_TOKEN }}
  28. - name: Build Docker Image
  29. run: ./gradlew buildMatrix pushMatrix
  30. working-directory: smoke-tests/matrix