Skip to content

Commit bd2d027

Browse files
committed
combined docker build and colcon build
1 parent 8db3274 commit bd2d027

File tree

2 files changed

+25
-42
lines changed

2 files changed

+25
-42
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,28 @@ jobs:
3232
tags: |
3333
${{ secrets.DOCKERHUB_USERNAME }}/kestrel:latest
3434
${{ secrets.DOCKERHUB_USERNAME }}/kestrel:${{ github.sha }}
35+
36+
colcon-build:
37+
needs: docker-build-and-push
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Login to DockerHub
45+
uses: docker/login-action@v3
46+
with:
47+
username: ${{ secrets.DOCKERHUB_USERNAME }}
48+
password: ${{ secrets.DOCKERHUB_TOKEN }}
49+
50+
- name: Pull latest image
51+
run: docker pull ${{ secrets.DOCKERHUB_USERNAME }}/kestrel:latest
52+
53+
- name: Colcon build stage
54+
run: |
55+
docker run --rm \
56+
-v ${{ github.workspace }}:/workspace \
57+
-w /workspace \
58+
${{ secrets.DOCKERHUB_USERNAME }}/kestrel:latest \
59+
bash -c "cd src && colcon build"

.github/workflows/compile.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)