Skip to content

Commit

Permalink
ci: Push image after cache
Browse files Browse the repository at this point in the history
For correctly getting latest image tag for docs
  • Loading branch information
j3soon committed Dec 13, 2024
1 parent 024f52a commit cdc0b13
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 18 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-aloha-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: aloha_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -128,3 +127,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-aloha-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: aloha_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-cartographer-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: cartographer_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -126,3 +125,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-cartographer-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: cartographer_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-gazebo-world-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: gazebo_world_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -116,3 +115,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-gazebo-world-ws:buildcache-amd64,mode=max
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: gazebo_world_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-husky-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: husky_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -129,3 +128,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-husky-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: husky_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-kobuki-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: kobuki_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -128,3 +127,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-kobuki-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: kobuki_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-orbslam3-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: orbslam3_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -116,3 +115,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-orbslam3-ws:buildcache-amd64,mode=max
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: orbslam3_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-rtabmap-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: rtabmap_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -116,3 +115,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-rtabmap-ws:buildcache-amd64,mode=max
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: rtabmap_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
10 changes: 8 additions & 2 deletions .github/workflows/build-template-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ jobs:
with:
username: j3soon
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: template_ws/docker
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
# Ref: https://github.com/docker/buildx/discussions/1382#discussioncomment-6252049
- name: Push amd64 cache
Expand All @@ -118,3 +117,10 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-template-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: template_ws/docker
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
13 changes: 11 additions & 2 deletions .github/workflows/build-vlp-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
run: docker pull --platform linux/amd64 j3soon/ros2-template-ws
- name: Pull j3soon/ros2-template-ws (arm64)
run: docker pull --platform linux/arm64 j3soon/ros2-template-ws
- name: Build and push
- name: Build image
uses: docker/build-push-action@v6
with:
context: vlp_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Push amd64 cache
uses: docker/build-push-action@v6
Expand All @@ -126,3 +125,13 @@ jobs:
cache-to: type=registry,ref=j3soon/ros2-vlp-ws:buildcache-arm64,mode=max
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Push image
uses: docker/build-push-action@v6
with:
context: vlp_ws/docker
cache-from: |
j3soon/ros2-template-ws:buildcache-amd64
j3soon/ros2-template-ws:buildcache-arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit cdc0b13

Please sign in to comment.