docker_ci.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: Docker-CI
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - release/*
  7. paths:
  8. - frontend/**
  9. pull_request:
  10. branches:
  11. - main
  12. - release/*
  13. paths:
  14. - frontend/**
  15. types:
  16. - opened
  17. - synchronize
  18. - reopened
  19. - unlocked
  20. - ready_for_review
  21. concurrency:
  22. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  23. cancel-in-progress: true
  24. jobs:
  25. build-app:
  26. if: github.event.pull_request.draft != true
  27. runs-on: ubuntu-latest
  28. steps:
  29. - name: Checkout source code
  30. uses: actions/checkout@v3
  31. - name: Build the app
  32. shell: bash
  33. run: |
  34. set -eu -o pipefail
  35. cd frontend/scripts/docker-buildfiles
  36. docker-compose build --no-cache --progress=plain \
  37. | while read line; do \
  38. if [[ "$line" =~ ^Step[[:space:]] ]]; then \
  39. echo "$(date -u '+%H:%M:%S') | $line"; \
  40. else \
  41. echo "$line"; \
  42. fi; \
  43. done \