docker-ci.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: docker-ci
  2. on:
  3. pull_request:
  4. jobs:
  5. docker-ci:
  6. runs-on: ubuntu-24.04
  7. timeout-minutes: 20
  8. steps:
  9. - name: Checkout Code
  10. uses: actions/checkout@v4
  11. - name: Set up Docker Buildx
  12. uses: docker/setup-buildx-action@v3
  13. - name: Docker metadata action
  14. id: meta
  15. uses: docker/metadata-action@v5
  16. with:
  17. images:
  18. zammad-local
  19. tags: |
  20. type=raw,latest
  21. - name: Build Docker image
  22. id: docker_build
  23. uses: docker/build-push-action@v6
  24. with:
  25. context: .
  26. labels: ${{ steps.meta.outputs.labels }}
  27. push: false
  28. tags: ${{ steps.meta.outputs.tags }}
  29. outputs: type=docker,dest=/tmp/zammad-local.tar
  30. - name: Checkout docker compose files
  31. uses: actions/checkout@v4
  32. with:
  33. repository: zammad/zammad-docker-compose
  34. path: zammad-docker-compose
  35. - name: Run docker compose tests
  36. run: |
  37. cd zammad-docker-compose
  38. docker load --input /tmp/zammad-local.tar
  39. docker compose -f docker-compose.yml -f docker-compose.override-local.yml up --detach
  40. docker cp .github/auto_wizard.json zammad-docker-compose-zammad-railsserver-1:/opt/zammad/tmp
  41. .github/tests.sh