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

feat(ci): enable Docker build cache to 5 times faster container build #4730

Merged
merged 36 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e03a150
introduce src-imported stage
youtalk May 13, 2024
e5aead0
empty
youtalk May 14, 2024
2d70277
generate install package lists
youtalk May 17, 2024
05d35ae
append || true
youtalk May 17, 2024
a390066
cat packages
youtalk May 17, 2024
99cd9bf
chore(docker): separate `rosdep install` and `colcon build` RUN comma…
youtalk May 15, 2024
bcc6509
wip
youtalk May 17, 2024
a50e7e5
wip
youtalk May 17, 2024
0fec259
Update Dockerfile
youtalk May 17, 2024
0c65eae
Update Dockerfile
youtalk May 18, 2024
f209622
install pacmod
youtalk May 18, 2024
af11db7
rename
youtalk May 18, 2024
3990ff0
Revert "install pacmod"
youtalk May 18, 2024
3dd8d57
install pacmod3
youtalk May 18, 2024
00d2e3b
register pamod3 repos
youtalk May 18, 2024
35366de
ignore hadolint
youtalk May 18, 2024
3eb3913
revert
youtalk May 18, 2024
b693322
run set-dev-env.sh
youtalk May 18, 2024
99fd7ea
pip install
youtalk May 18, 2024
bdc1316
copy
youtalk May 18, 2024
be49c85
rosdep update
youtalk May 19, 2024
d7effac
Merge branch 'main' into src-imported
youtalk May 19, 2024
92d85cf
vcs import outside dockerfile
youtalk May 20, 2024
ed61b07
enable docker build cache
youtalk May 16, 2024
cb43bab
empty
youtalk May 17, 2024
ea872bc
add no-cuda/cuda suffix
youtalk May 17, 2024
9d899e8
Merge remote-tracking branch 'upstream/main' into introduce-cache-fro…
youtalk May 23, 2024
78be806
remove --download-artifacts
youtalk May 22, 2024
4087a9e
remove --download-artifacts
youtalk May 22, 2024
5a9b194
add --data-path option
youtalk May 22, 2024
8abf609
wip
youtalk May 23, 2024
e5c328c
run download_artifacts
youtalk May 24, 2024
b6f3c06
remove todo
youtalk May 24, 2024
6b744d5
revert run
youtalk May 24, 2024
383fda2
Merge branch 'upstream-disable-download-artifacts' into introduce-cac…
youtalk May 24, 2024
8e5e5ab
Merge remote-tracking branch 'upstream/main' into introduce-cache-fro…
youtalk May 24, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/build-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: false
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
on:
push:
tags:
- adkit-v*.*.*

Check warning on line 12 in .github/workflows/docker-build-and-push-main-self-hosted.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (adkit)
branches:
- main
schedule:
Expand Down Expand Up @@ -85,6 +85,8 @@
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
on:
push:
tags:
- adkit-v*.*.*

Check warning on line 12 in .github/workflows/docker-build-and-push-main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (adkit)
branches:
- main
schedule:
Expand Down Expand Up @@ -80,6 +80,8 @@
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: true
Expand Down
Loading