Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add multiplatform build
Browse files Browse the repository at this point in the history
mandulaj committed Feb 9, 2024
1 parent 2abe490 commit b3f975d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/docker_push.yaml
Original file line number Diff line number Diff line change
@@ -3,31 +3,41 @@ name: "Publish Ubuntu images"
on:
release:
types: [published]
push:
branches: [ feature/docker_push ]

jobs:
push_to_registries:
name: Push Docker image to multiple registries
runs-on: self-hosted
permissions:
packages: write
contents: read
strategy:
matrix:
version: [16, 18, 20]
name: Push Ubuntu ${{ matrix.version }}.04 Docker image
steps:
- name: Check out the repo
-
name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
-
name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
-
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

0 comments on commit b3f975d

Please sign in to comment.