docker-ci.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. pull: true
  28. push: false
  29. tags: ${{ steps.meta.outputs.tags }}
  30. outputs: type=docker,dest=/tmp/zammad-local.tar
  31. - name: Checkout docker compose files
  32. uses: actions/checkout@v4
  33. with:
  34. repository: zammad/zammad-docker-compose
  35. path: zammad-docker-compose
  36. - name: Run docker compose tests
  37. run: |
  38. cd zammad-docker-compose
  39. docker load --input /tmp/zammad-local.tar
  40. docker compose -f docker-compose.yml -f docker-compose.override-local.yml up --detach
  41. docker cp .github/auto_wizard.json zammad-docker-compose-zammad-railsserver-1:/opt/zammad/tmp
  42. .github/tests.sh