Skip to content

Commit 26e3fa9

Browse files
committed
python build depends on ros build
1 parent f58b482 commit 26e3fa9

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-base-ros-python
2+
permissions:
3+
contents: read
4+
packages: write
5+
6+
on:
7+
workflow_run:
8+
workflows: ["build-base-ros"]
9+
types:
10+
- completed
11+
push:
12+
paths:
13+
- ".github/workflows/docker-base-ros-python.yml"
14+
- "docker/base-ros-python/**"
15+
- "base-requirements.txt"
16+
- "requirements.txt"
17+
jobs:
18+
build:
19+
runs-on: dimos-runner-ubuntu-2204
20+
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- uses: docker/login-action@v3
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
34+
- name: Build and push
35+
uses: docker/build-push-action@v6
36+
with:
37+
push: true
38+
context: .
39+
file: docker/base-ros-python/Dockerfile
40+
tags: dimensionalos/base-ros-python:latest
41+
cache-from: type=gha
42+
cache-to: type=gha,mode=max
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: build-ros-base
1+
name: build-base-ros
22
permissions:
33
contents: read
44
packages: write
55

66
on:
77
push:
88
paths:
9-
- ".github/workflows/build-docker.yml"
10-
- "requirements.txt"
11-
- "docker/*"
9+
- ".github/workflows/docker-base-ros.yml"
10+
- "docker/base-ros/**"
1211
jobs:
13-
docker:
12+
build:
1413
runs-on: dimos-runner-ubuntu-2204
1514
steps:
1615
- name: Checkout

0 commit comments

Comments
 (0)