You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. name: webspa
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - dev
  7. paths:
  8. - src/BuildingBlocks/**
  9. - src/Web/WebSPA/**
  10. - .github/workflows/webspa.yml
  11. pull_request:
  12. branches:
  13. - dev
  14. paths:
  15. - src/BuildingBlocks/**
  16. - src/Web/WebSPA/**
  17. - .github/workflows/webspa.yml
  18. env:
  19. SERVICE: webspa
  20. IMAGE: webspa
  21. jobs:
  22. BuildContainersForPR_Linux:
  23. runs-on: ubuntu-latest
  24. if: ${{ github.event_name == 'pull_request' }}
  25. steps:
  26. - name: Checkout code
  27. uses: actions/checkout@v2
  28. - uses: ./.github/workflows/composite/build
  29. with:
  30. service: ${{ env.SERVICE }}
  31. registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
  32. BuildLinux:
  33. runs-on: ubuntu-latest
  34. if: ${{ github.event_name != 'pull_request' }}
  35. steps:
  36. - name: Checkout code
  37. uses: actions/checkout@v2
  38. - uses: ./.github/workflows/composite/build-push
  39. with:
  40. service: ${{ env.SERVICE }}
  41. registry_host: ${{ secrets.REGISTRY_HOST }}
  42. registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
  43. image_name: ${{ env.IMAGE }}
  44. registry_username: ${{ secrets.USERNAME }}
  45. registry_password: ${{ secrets.PASSWORD }}