Skip to content

Commit

Permalink
[WIP] Test
Browse files Browse the repository at this point in the history
  • Loading branch information
elandini84 committed Jan 29, 2024
1 parent 1d97ef0 commit 9fa975a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 48 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,54 +75,54 @@ jobs:
fi
build-r1OpenPose:
runs-on: ubuntu-latest
# build-r1OpenPose:
# runs-on: ubuntu-latest

steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Info
run: |
echo "Event type: ${{github.event_name}}"
- name: Change docker to experimental mode
run: |
sudo rm -rf /etc/docker/daemon.json
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker
- uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the openPose Docker image
working-directory: docker_stuff/docker_openPose/
run: |
if [ ${{ github.event_name }} == 'schedule' ]; then
echo "Building development tour openPose image"
sudo docker build --build-arg ros_distro=${{steps.extract_branch.outputs.branch}} --tag elandini84/r1images:r1OpenPose_devel .
elif [ ${{ github.event_name }} == 'workflow_dispatch' ]; then
echo "Building stable tour openPose image"
sudo docker build --build-arg ros_distro=${{steps.extract_branch.outputs.branch}} --tag elandini84/r1images:r1OpenPose_stable .
else
echo "Failure!"
exit 1
fi
- name: Push r1OpenPose image
run: |
if [ ${{ github.event_name }} == 'schedule' ]; then
echo "Pushing r1OpenPose development image"
docker push elandini84/r1images:r1OpenPose_devel
elif [ ${{ github.event_name }} == 'workflow_dispatch' ]; then
echo "Pushing r1OpenPose stable image"
docker push elandini84/r1images:r1OpenPose_stable
else
echo "Failure!"
exit 1
fi
# steps:
# - name: Extract branch name
# shell: bash
# run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
# id: extract_branch
# - name: Info
# run: |
# echo "Event type: ${{github.event_name}}"
# - name: Change docker to experimental mode
# run: |
# sudo rm -rf /etc/docker/daemon.json
# echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
# - name: Restart docker daemon
# run: sudo systemctl restart docker
# - uses: actions/checkout@v3
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build the openPose Docker image
# working-directory: docker_stuff/docker_openPose/
# run: |
# if [ ${{ github.event_name }} == 'schedule' ]; then
# echo "Building development tour openPose image"
# sudo docker build --build-arg ros_distro=${{steps.extract_branch.outputs.branch}} --tag elandini84/r1images:r1OpenPose_devel .
# elif [ ${{ github.event_name }} == 'workflow_dispatch' ]; then
# echo "Building stable tour openPose image"
# sudo docker build --build-arg ros_distro=${{steps.extract_branch.outputs.branch}} --tag elandini84/r1images:r1OpenPose_stable .
# else
# echo "Failure!"
# exit 1
# fi
# - name: Push r1OpenPose image
# run: |
# if [ ${{ github.event_name }} == 'schedule' ]; then
# echo "Pushing r1OpenPose development image"
# docker push elandini84/r1images:r1OpenPose_devel
# elif [ ${{ github.event_name }} == 'workflow_dispatch' ]; then
# echo "Pushing r1OpenPose stable image"
# docker push elandini84/r1images:r1OpenPose_stable
# else
# echo "Failure!"
# exit 1
# fi


build-tour-docker-sim:
Expand Down
2 changes: 1 addition & 1 deletion docker_stuff/docker_tourCore2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ ENV navigation_DIR=$robotology_install_folder/navigation/build
# CER
USER $robotology_install_user
WORKDIR $robotology_install_folder
RUN git clone https://github.com/robotology/cer.git -b devel
RUN git clone https://github.com/elandini84/cer.git -b fix/compatibility/yarp_master
RUN cd cer && mkdir build && cd build && cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_cermod_cerDoubleLidar=ON \
Expand Down

0 comments on commit 9fa975a

Please sign in to comment.