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.

49 lines
1.2 KiB

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