Skip to content

attempting another build #3

attempting another build

attempting another build #3

name: build-base-ros-python
permissions:
contents: read
packages: write
concurrency:
group: docker-base-ros-python
cancel-in-progress: true
on:
workflow_run:
workflows: ["build-base-ros"]
types:
- completed
push:
paths:
- ".github/workflows/docker-base-ros-python.yml"
- "docker/base-ros-python/**"
- "base-requirements.txt"
- "requirements.txt"
jobs:
build:
runs-on: dimos-runner-ubuntu-2204
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
context: .
file: docker/base-ros-python/Dockerfile
tags: ghcr.io/dimensionalos/base-ros-python:latest
cache-from: type=gha
cache-to: type=gha,mode=max