File tree Expand file tree Collapse file tree 2 files changed +46
-5
lines changed
Expand file tree Collapse file tree 2 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- name : build-ros- base
1+ name : build-base-ros
22permissions :
33 contents : read
44 packages : write
55
66on :
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/**"
1211jobs :
13- docker :
12+ build :
1413 runs-on : dimos-runner-ubuntu-2204
1514 steps :
1615 - name : Checkout
You can’t perform that action at this time.
0 commit comments