32 lines
816 B
YAML
Executable File
32 lines
816 B
YAML
Executable File
name: ROS-melodic Docker Build Check
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 120
|
|
steps:
|
|
- name: delete unnecessary tools folder
|
|
run: rm -rf /opt/hostedtoolcache
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
- name: set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: build check
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: false
|