Skip to content

Commit b2f3250

Browse files
Add Docker build GitHub Action workflow (#217)
* Add Docker build GitHub Action workflow * Change versioning to 0.xx.x to denote alpha state Addresses issue #216 --------- Co-authored-by: openhands <[email protected]>
1 parent 1a8db39 commit b2f3250

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This top-level .env file under AirStack/ defines variables that are propagated through docker-compose.yaml
22
PROJECT_NAME="airstack"
3-
PROJECT_VERSION="1.1.0"
3+
PROJECT_VERSION="0.11.0"
44
# can replace with your docker hub username
55
PROJECT_DOCKER_REGISTRY="airlab-storage.andrew.cmu.edu:5001/shared"
66
DEFAULT_ISAAC_SCENE="omniverse://airlab-storage.andrew.cmu.edu:8443/Projects/AirStack/fire_academy.scene.usd"
77
PLAY_SIM_ON_START="true"
88
# the file under robot/docker/ that contains the robot's environment variables
9-
ROBOT_ENV_FILE_NAME="robot.env"
9+
ROBOT_ENV_FILE_NAME="robot.env"

.github/workflows/docker-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docker Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**/Dockerfile'
9+
- '**/docker-compose.yml'
10+
- '**/docker-compose.yaml'
11+
12+
jobs:
13+
build-x86:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Build and push x86-64 images
20+
uses: mr-smithers-excellent/docker-build-push@v6
21+
with:
22+
image: airstack
23+
registry: ghcr.io
24+
username: ${{ secrets.AIRLAB_DOCKER_REGISTRY_USERNAME }}
25+
password: ${{ secrets.AIRLAB_DOCKER_REGISTRY_PASSWORD }}
26+
addLatest: true
27+
enableBuildKit: true
28+
platform: linux/amd64
29+
30+
build-l4t:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v3
35+
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v2
38+
39+
- name: Build and push L4T robot image
40+
uses: mr-smithers-excellent/docker-build-push@v6
41+
with:
42+
image: airstack-robot-l4t
43+
registry: ghcr.io
44+
username: ${{ secrets.AIRLAB_DOCKER_REGISTRY_USERNAME }}
45+
password: ${{ secrets.AIRLAB_DOCKER_REGISTRY_PASSWORD }}
46+
addLatest: true
47+
enableBuildKit: true
48+
multiPlatform: true
49+
platform: linux/arm64
50+
directory: .
51+
dockerfile: docker/robot/Dockerfile.l4t

0 commit comments

Comments
 (0)