Skip to content

Commit

Permalink
update docker build command
Browse files Browse the repository at this point in the history
Signed-off-by: Masaya Kataoka <[email protected]>
  • Loading branch information
hakuturu583 committed Feb 15, 2024
1 parent a08b212 commit 1656982
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/Docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
wget https://download.docker.com/mac/static/stable/aarch64/docker-25.0.3.tgz
tar -xvzf docker-25.0.3.tgz

Check warning on line 35 in .github/workflows/Docker.yaml

View workflow job for this annotation

GitHub Actions / spell-check

Unknown word (xvzf)
cp docker/docker /usr/local/bin/
mkdir -p $HOME/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/v0.12.1/buildx-v0.12.1.darwin-arm64 -O $HOME/.docker/cli-plugins/docker-buildx
- uses: actions/checkout@v3

Expand All @@ -46,30 +44,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push (amd64)
uses: docker/bake-action@v3
if: ${{ matrix.runs_on == 'ubuntu-22.04' }}
with:
files: |
./docker-bake.hcl
workdir: .
no-cache: true
push: ${{ github.event_name != 'pull_request' }}
targets: |
${{ matrix.rosdistro }}
set: |
*.platform=linux/amd64
- name: Build (amd64)
if: ${{ matrix.runs_on == 'ubuntu-22.04'}}
run: docker build -t ghcr.io/tier4/scenario_simulator_v2:${{ matrix.rosdistro }} --platform linux/amd64 . --build-arg ROS_DISTRO=${{ matrix.rosdistro }}

- name: Build and push (arm64)
uses: docker/bake-action@v3
- name: Build (arm64)
if: ${{ matrix.runs_on == 'macos-14'}}
with:
files: |
./docker-bake.hcl
workdir: .
no-cache: true
push: ${{ github.event_name != 'pull_request' }}
targets: |
${{ matrix.rosdistro }}
set: |
*.platform=linux/arm64/v8
run: docker build -t ghcr.io/tier4/scenario_simulator_v2:${{ matrix.rosdistro }} --platform linux/arm64/v8 . --build-arg ROS_DISTRO=${{ matrix.rosdistro }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG ROS_DISTRO
ARG ROS_DISTRO="humble"
FROM ros:${ROS_DISTRO} as build-stage
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
Expand Down

0 comments on commit 1656982

Please sign in to comment.