Merge pull request #175 from purdue-arc/jcrm1-patch-1 #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Top-level push workflow | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['main'] | |
jobs: | |
changes: | |
name: Check for changes to files in docker directory | |
runs-on: ubuntu-latest | |
outputs: | |
docker: ${{ steps.changes.outputs.docker }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- id: changes | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
docker: ['docker/**'] | |
docker: | |
name: Rebuild Docker image and push to latest | |
needs: changes | |
if: needs.changes.outputs.docker == 'true' | |
uses: purdue-arc/rocket_league/.github/workflows/docker-build-push.yml@main | |
secrets: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
catkin: | |
name: Catkin build and test using latest Docker image | |
needs: docker | |
if: always() | |
uses: purdue-arc/rocket_league/.github/workflows/catkin-build-test.yml@main | |
docs: | |
name: Build and deploy documentation | |
needs: docker | |
if: always() | |
uses: purdue-arc/rocket_league/.github/workflows/docs.yml@main |