build.yml 779 B

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