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

New Automatic Build and Push Actions #670

Open
wants to merge 6 commits into
base: master
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
23 changes: 0 additions & 23 deletions .github/workflows/docker_1804_build.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/docker_2004_build.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: "ROS1 Ubuntu 16.04"
name: "Build Kalibr"

on:
push:
branches: [ master, dockerfile ]
branches: [ master ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [16, 18, 20]
name: Build Ubuntu ${{ matrix.version }}.04
steps:
- name: Code Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Workspace
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
Expand All @@ -19,5 +24,4 @@ jobs:
- name: Build Docker
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
docker build -t kalibr -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_16_04 .

docker build -t kalibr -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_${{ matrix.version }}_04 .
42 changes: 42 additions & 0 deletions .github/workflows/docker_push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Publish Ubuntu images"

on:
release:
types: [published]

jobs:
push_to_registries:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
fail-fast: false
matrix:
version: [16, 18, 20]
name: Push Ubuntu ${{ matrix.version }}.04 Docker image
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile_ros1_${{ matrix.version }}_04
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ vars.DOCKER_HUB_REPOSITORY }}/kalibr:${{ matrix.version }}.04
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ To install follow the [install wiki page](https://github.com/ethz-asl/kalibr/wik
Please find more information on the [wiki pages](https://github.com/ethz-asl/kalibr/wiki) of this repository.
For questions or comments, please open an issue on Github.

## Quick Docker run
You can run Kalibr from a prebuild image using Docker:
```bash
docker run -it -v `pwd`:/pwd mandulaj/kalibr:20.04
```
For more see the Overview on [Docker Hub](https://hub.docker.com/r/mandulaj/kalibr)

## News / Events

Expand Down