Skip to content

Commit

Permalink
Revert references to foxy/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McConnell authored and Michael McConnell committed Feb 8, 2022
1 parent e8c802e commit 79248f3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Pull docker image from docker hub
# XTERM used for better catkin_make output
docker:
- image: usdotfhwastoldev/carma-base:foxy-develop
- image: usdotfhwastoldev/carma-base:develop
user: carma
environment:
TERM: xterm
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations under
# the License.

FROM usdotfhwastoldev/carma-base:foxy-develop as base
FROM usdotfhwastoldev/carma-base:develop as base
FROM base as setup

RUN mkdir ~/src
Expand Down
2 changes: 1 addition & 1 deletion docker/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ while [[ $# -gt 0 ]]; do
;;
-d|--develop)
USERNAME=usdotfhwastoldev
COMPONENT_VERSION_STRING=foxy-develop
COMPONENT_VERSION_STRING=develop
shift
;;
esac
Expand Down
6 changes: 3 additions & 3 deletions docker/checkout.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ while [[ $# -gt 0 ]]; do
arg="$1"
case $arg in
-d|--develop)
BRANCH=foxy/develop
BRANCH=develop
shift
;;
-r|--root)
Expand All @@ -39,6 +39,6 @@ if [[ "$BRANCH" = "develop" ]]; then
git clone https://github.com/usdot-fhwa-stol/carma-msgs.git ~/src/carma-msgs --branch $BRANCH --depth 1
git clone https://github.com/usdot-fhwa-stol/carma-utils.git ~/src/carma-utils --branch $BRANCH --depth 1
else
git clone https://github.com/usdot-fhwa-stol/carma-msgs.git ${dir}/src/carma-msgs --branch foxy/develop --depth 1
git clone https://github.com/usdot-fhwa-stol/carma-utils.git ${dir}/src/carma-utils --branch foxy/develop --depth 1
git clone https://github.com/usdot-fhwa-stol/carma-msgs.git ${dir}/src/carma-msgs --branch develop --depth 1
git clone https://github.com/usdot-fhwa-stol/carma-utils.git ${dir}/src/carma-utils --branch develop --depth 1
fi
4 changes: 2 additions & 2 deletions hooks/pre_build
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

if [[ "$SOURCE_BRANCH" = "develop" ]]; then
# add -d flag to checkout.bash and update image dependencies
sed -i "s|checkout.bash|checkout.bash -d|g; s|usdotfhwastol/|usdotfhwastoldev/|g; s|:[0-9]*\.[0-9]*\.[0-9]*|:foxy-develop|g s|:CARMA[a-zA-Z]*_[0-9]*\.[0-9]*\.[0-9]*|:foxy-develop|g; s|:carma-[a-zA-Z]*-[0-9]*\.[0-9]*\.[0-9]*|:foxy-develop|g" \
sed -i "s|checkout.bash|checkout.bash -d|g; s|usdotfhwastol/|usdotfhwastoldev/|g; s|:[0-9]*\.[0-9]*\.[0-9]*|:develop|g s|:CARMA[a-zA-Z]*_[0-9]*\.[0-9]*\.[0-9]*|:develop|g; s|:carma-[a-zA-Z]*-[0-9]*\.[0-9]*\.[0-9]*|:develop|g" \
Dockerfile
elif [[ "$SOURCE_BRANCH" =~ ^release/.*$ ]]; then
# swap checkout branch in checkout.bash to release branch
RELEASE_NAME=$(echo $SOURCE_BRANCH | cut -d "/" -f 2)
sed -i "s|usdotfhwastol/|usdotfhwastolcandidate/|g; s|usdotfhwastoldev/|usdotfhwastolcandidate/|g; s|:[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:CARMA[a-zA-Z]*_[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:carma-[a-zA-Z]*-[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:foxy-develop|:$RELEASE_NAME|g" \
sed -i "s|usdotfhwastol/|usdotfhwastolcandidate/|g; s|usdotfhwastoldev/|usdotfhwastolcandidate/|g; s|:[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:CARMA[a-zA-Z]*_[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:carma-[a-zA-Z]*-[0-9]*\.[0-9]*\.[0-9]*|:$RELEASE_NAME|g; s|:develop|:$RELEASE_NAME|g" \
Dockerfile
# swap checkout branch in checkout.bash to release branch
sed -i "s|--branch .*|--branch $SOURCE_BRANCH|g" \
Expand Down

0 comments on commit 79248f3

Please sign in to comment.