Skip to content

Commit

Permalink
go abck to building in x86
Browse files Browse the repository at this point in the history
  • Loading branch information
jyjblrd committed Apr 14, 2024
1 parent 7eae227 commit 83e984f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 30 deletions.
50 changes: 21 additions & 29 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
--output type=image,push=true .
build-nvidia-jetson-docker:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: joshuabird/part_ii_project_nvidia_jetson
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -84,13 +84,12 @@ jobs:
PROGRESS_NO_TRUNC: 1
steps:
- name: Checkout the code
uses: actions/checkout@v1

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: actions/checkout@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest

- name: Prepare
if: success()
Expand All @@ -99,26 +98,19 @@ jobs:
echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM}
echo ::set-output name=docker_image::${DOCKER_IMAGE}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.prepare.outputs.docker_image }}:latest
- name: Docker Login
if: success()
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
# - name: Run Buildx (push image)
# if: success()
# run: |
# docker buildx build \
# --platform ${{ steps.prepare.outputs.docker_platform }} \
# --tag ${{ steps.prepare.outputs.docker_image }}:latest \
# --file ./nvidia_jetson.Dockerfile \
# --progress plain \
# --cache-to=type=inline,mode=max \
# --cache-from type=registry,ref=${{ steps.prepare.outputs.docker_image }}:latest \
# --output type=image,push=true .
- name: Run Buildx (push image)
if: success()
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platform }} \
--tag ${{ steps.prepare.outputs.docker_image }}:latest \
--file ./nvidia_jetson.Dockerfile \
--progress plain \
--cache-to=type=inline,mode=max \
--cache-from type=registry,ref=${{ steps.prepare.outputs.docker_image }}:latest \
--output type=image,push=true .
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN sudo apt install -y ros-humble-interactive-markers
# Build part II project
RUN apt-get update && yes | apt-get install libboost-all-dev
RUN cd /opt/root_ws \
&& . /opt/ros/humble/install/setup.sh \
&& source /opt/ros/humble/install/setup.sh \
&& git clone https://github.com/jyjblrd/part_II_project \
&& cd part_II_project \
&& git config --global --add safe.directory /opt/root_ws/part_II_project \
Expand Down

0 comments on commit 83e984f

Please sign in to comment.