-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (42 loc) · 1.14 KB
/
docker-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Docker build
on:
workflow_dispatch:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
- cron: '0 2 * * *'
jobs:
space_robots:
runs-on: ubuntu-20.04
steps:
- name: "Free up disk space"
run: |
sudo apt-get -qq purge "ghc*"
sudo apt-get clean
# cleanup docker images not used by us
docker system prune -af
# free up a lot of stuff from /usr/local
sudo rm -rf /usr/local
df -h
- name: Checkout
uses: actions/checkout@v2
- name: Set up buildx
uses: docker/setup-buildx-action@v1
- name: Build moveit2 image
uses: docker/build-push-action@v2
with:
context: moveit2
push: false
tags: openrobotics/moveit2:latest
cache-from: type=gha
cache-to: type=gha,mode=max
no-cache: false
outputs: type=docker,dest=/tmp/moveit2.tar
- name: Build space robots demo image
run: |
set -eo pipefail
docker load --input /tmp/moveit2.tar
docker images
cd space_robots && ./build.sh