build.yml 796 B

123456789101112131415161718192021222324252627282930313233
  1. name: Build
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. # Allows you to run this workflow manually from the Actions tab
  7. workflow_dispatch:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. ROS_DISTRO: [melodic, melodic_llvm, noetic, noetic_llvm, foxy, foxy_llvm, galactic, galactic_llvm]
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Docker login
  17. continue-on-error: true
  18. uses: docker/login-action@v1
  19. with:
  20. username: ${{ secrets.DOCKER_USERNAME }}
  21. password: ${{ secrets.DOCKER_TOKEN }}
  22. - name: Docker build
  23. uses: docker/build-push-action@v2
  24. with:
  25. file: ${{github.workspace}}/docker/${{ matrix.ROS_DISTRO }}/Dockerfile
  26. context: .
  27. push: false