Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump build runner version #96

Open
wants to merge 8 commits into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
name: build
name: Build
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build/Tests
run: |
docker build -t ci-pendulum .

deployment:
name: Deployment
runs-on: ubuntu-18.04
build-base:
name: Base
runs-on: ubuntu-22.04
needs: [build]
if: github.ref == 'refs/heads/rolling'
# if: github.ref == 'refs/heads/rolling'
steps:
- uses: actions/checkout@v2
- name: Base
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
cd ade/docker-base && docker build --build-arg OS_VERSION=ubuntu:22.04 -t ros2realtimedemo/pendulum:base-rolling-tracers .
docker push ros2realtimedemo/pendulum:ade-base-rolling

deployment:
name: Deployment
runs-on: ubuntu-22.04
needs: [build-base]
# if: github.ref == 'refs/heads/rolling'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Deploy
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
Expand Down
24 changes: 15 additions & 9 deletions ade/docker-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@ FROM $OS_VERSION

MAINTAINER Lander Usategui <lander dot usategui at gmail dot com>

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

ENV ROS_VERSION rolling

WORKDIR /root/ros2_$ROS_VERSION

RUN apt-get update && \
apt-get install -y \
apt-utils \
curl \
locales \
software-properties-common \
tzdata \
&& rm -rf /var/lib/apt/lists/*

RUN locale-gen en_US.UTF-8; dpkg-reconfigure -f noninteractive locales
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN apt-get update \
&& echo 'Etc/UTC' > /etc/timezone \
&& ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime \
&& apt-get install -y \
firefox \
sudo \
locales \
tzdata \
libogre-1.12 \
libogre1.12.10 \
htop \
stress-ng \
rt-tests \
Expand Down