CD-dev.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: CD DEV
  2. concurrency:
  3. group: ${{ github.ref }}
  4. cancel-in-progress: true
  5. on:
  6. workflow_run:
  7. workflows: ["CI"]
  8. branches:
  9. - main
  10. types:
  11. - completed
  12. jobs:
  13. docker-master:
  14. if: ${{ github.event.workflow_run.conclusion == 'success' }}
  15. uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
  16. with:
  17. file: apps/master/Dockerfile
  18. context: .
  19. tags: premid/api-master
  20. version: ${{ github.sha }}-${{ github.run_number }}
  21. secrets:
  22. GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
  23. permissions:
  24. contents: read
  25. packages: write
  26. docker-worker:
  27. if: ${{ github.event.workflow_run.conclusion == 'success' }}
  28. uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
  29. with:
  30. file: apps/worker/Dockerfile
  31. context: .
  32. tags: premid/api-worker
  33. version: ${{ github.sha }}-${{ github.run_number }}
  34. secrets:
  35. GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
  36. permissions:
  37. contents: read
  38. packages: write