Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwalter authored Feb 28, 2024
1 parent a776baf commit f8e76de
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI (latest)
name: Docker Image CI

on:
push:
Expand All @@ -12,6 +12,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load environment variables
uses: c-py/action-dotenv-to-setenv@v2
with:
env-file: ./.env
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -21,10 +25,19 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build and push previous
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64/v8,linux/amd64
push: true
tags: ripl/libbot2-ros:${{ env.ROS_VERSION_PREVIOUS }}
build-args: ROS_VERSION=${{ env.ROS_VERSION_PREVIOUS }}
- name: Build and push latest
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
platforms: linux/arm64/v8,linux/amd64
push: true
tags: ripl/libbot2-ros:latest
tags: ripl/libbot2-ros:latest, ripl/libbot2-ros:${{ env.ROS_VERSION_LATEST }}
build-args: ROS_VERSION=${{ env.ROS_VERSION_LATEST }}

0 comments on commit f8e76de

Please sign in to comment.