Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(devcontainer): Build the workspace once in advance #23

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ jobs:
uses: ./.github/workflows/ci_format_code.yml
build_dev_container:
uses: ./.github/workflows/ci_build_dev_container.yml
build:
launch_dev_container:
needs: build_dev_container
uses: ./.github/workflows/ci_launch_dev_container.yml
build:
needs: launch_dev_container
uses: ./.github/workflows/ci_build.yml
test:
needs: build_dev_container
needs: launch_dev_container
uses: ./.github/workflows/ci_test.yml
lint:
needs: build_dev_container
needs: launch_dev_container
uses: ./.github/workflows/ci_lint.yml
21 changes: 21 additions & 0 deletions .github/workflows/ci_launch_dev_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI launch dev container
'on':
workflow_call: null
jobs:
build_dev_container:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build workspace by executing the container entrypoint
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev
runCmd: echo entrypoint execution finished
push: never