Skip to content

Commit

Permalink
Merge pull request #17 from sonia-auv/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
gauthiermartin authored Aug 3, 2020
2 parents 3c505ac + 9abde54 commit 7f9407b
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
devel
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches: [develop]

jobs:
build-ros-robot-x86-64:
name: "Build ROS robot X86/64"
build-ros-perception-x86-64:
name: "Build ROS perception X86/64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:x86-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:x86-perception-latest"
ARCH: x86
TARGET_TYPE: robot
TARGET_TYPE: perception
TARGET_VERSION: develop
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Login to Github Package Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-${TARGET_VERSION}-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date ' +%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -37,13 +37,13 @@ jobs:
run: |
docker push ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
build-ros-robot-arm64:
name: "Build ROS robot ARM64"
build-ros-perception-arm64:
name: "Build ROS perception ARM64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:arm64-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:arm64-perception-latest"
ARCH: arm64
TARGET_TYPE: robot
TARGET_TYPE: perception
TARGET_VERSION: develop
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
Expand All @@ -65,7 +65,7 @@ jobs:
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-${TARGET_VERSION}-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date ' +%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -85,7 +85,7 @@ jobs:
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: success()
steps:
- name: Notify Slack Success
Expand All @@ -100,7 +100,7 @@ jobs:
notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: failure()
steps:
- name: Notify Slack Fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches: [feature/**]

jobs:
build-ros-robot-x86-64:
name: "Build ROS robot X86/64"
build-ros-perception-x86-64:
name: "Build ROS perception X86/64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:x86-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:x86-perception-latest"
ARCH: x86
TARGET_TYPE: robot
TARGET_TYPE: perception
TARGET_VERSION: feature
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Login to Github Package Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-feature-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date ' +%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -32,13 +32,13 @@ jobs:
run: |
docker push ${GITHUB_REMOTE_URL}/${IMAGE_NAME}:${ARCH}-${TARGET_TYPE}-${TARGET_VERSION}-${GITHUB_REF##*/}
build-ros-robot-arm64:
name: "Build ROS robot ARM64"
build-ros-perception-arm64:
name: "Build ROS perception ARM64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:arm64-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:arm64-perception-latest"
ARCH: arm64
TARGET_TYPE: robot
TARGET_TYPE: perception
TARGET_VERSION: feature
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
Expand All @@ -60,7 +60,7 @@ jobs:
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-feature-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date ' +%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -75,7 +75,7 @@ jobs:
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: success()
steps:
- name: Notify Slack Success
Expand All @@ -90,7 +90,7 @@ jobs:
notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
if: failure()
steps:
- name: Notify Slack Fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches: [master]

jobs:
build-ros-robot-x86-64:
name: "Build ROS robot X86/64"
build-ros-perception-x86-64:
name: "Build ROS perception X86/64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:x86-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:x86-perception-latest"
ARCH: x86
TARGET_TYPE: robot
TARGET_TYPE: perception
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
steps:
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Set Target version
run: echo '::set-env name=TARGET_VERSION::release-'$(sed -n -e 's/.*<version>\(.*\)<\/version>.*/\1/p' package.xml)

- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-${TARGET_VERSION}-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date '+%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -41,13 +41,13 @@ jobs:
run: |
docker push ${GITHUB_REMOTE_URL}/${IMAGE_NAME}
build-ros-robot-arm64:
name: "Build ROS robot ARM64"
build-ros-perception-arm64:
name: "Build ROS perception ARM64"
runs-on: ubuntu-latest
env:
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:arm64-robot-latest"
BASE_IMAGE: "docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:arm64-perception-latest"
ARCH: arm64
TARGET_TYPE: robot
TARGET_TYPE: perception
IMAGE_NAME: provider_actuators
GITHUB_REMOTE_URL: docker.pkg.github.com/${{ github.repository }}
steps:
Expand All @@ -67,11 +67,11 @@ jobs:
- name: Install QEMU to be able to compile on X86 into ARM64
run: |
sudo apt-get update
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build the docker image (robot based)
- name: Build the docker image (perception based)
run: |
docker build . --tag build-${TARGET_VERSION}-${GITHUB_REF##*/}-${GITHUB_RUN_NUMBER} --build-arg BUILD_DATE=$(date '+%Y-%m-%d_%H:%M:%S') --build-arg VERSION=${GITHUB_REF##*/}-$(date ' +%Y-%m-%d_%H:%M:%S') --build-arg BASE_IMAGE=${BASE_IMAGE}
Expand All @@ -92,7 +92,7 @@ jobs:
create-release:
name: "Create Github Release"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64]
steps:
- uses: actions/checkout@v2
- name: Set Target version
Expand All @@ -118,7 +118,7 @@ jobs:
notify-success:
name: "Notify Slack - Success"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64, create-release]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64, create-release]
if: success()
steps:
- name: Notify Slack Success
Expand All @@ -133,7 +133,7 @@ jobs:
notify-fail:
name: "Notify Slack - Failure"
runs-on: ubuntu-latest
needs: [build-ros-robot-x86-64, build-ros-robot-arm64, create-release]
needs: [build-ros-perception-x86-64, build-ros-perception-arm64, create-release]
if: failure()
steps:
- name: Notify Slack Fail
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ find_package(
roscpp
cmake_modules
std_msgs
sonia_msgs
sonia_common
)

#===============================================================================
Expand All @@ -41,7 +41,7 @@ catkin_package(
CATKIN_DEPENDS
roscpp
std_msgs
sonia_msgs
sonia_common
)


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE="docker.pkg.github.com/sonia-auv/sonia_messages/sonia_messages:x86-robot-latest"
ARG BASE_IMAGE="docker.pkg.github.com/sonia-auv/sonia_common/sonia_common:x86-perception-latest"

FROM ${BASE_IMAGE}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Add additional notes about how to deploy this on a live system

Add additional project dependencies

* [ROS](http://wiki.ros.org/) - ROS robotic framework
* [ROS](http://wiki.ros.org/) - ROS perceptionic framework


## Versioning
Expand Down
6 changes: 3 additions & 3 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>provider_actuators</name>
<version>1.0.0</version>
<version>1.1.0</version>
<description>
The provider_actuators is responsible to communicate with IO board.
</description>
Expand All @@ -17,10 +17,10 @@

<build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>sonia_msgs</build_depend>
<build_depend>sonia_common</build_depend>

<run_depend>roscpp</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>sonia_msgs</run_depend>
<run_depend>sonia_common</run_depend>

</package>
Loading

0 comments on commit 7f9407b

Please sign in to comment.