Skip to content

Create format.yml for pre-commit CI #14

Create format.yml for pre-commit CI

Create format.yml for pre-commit CI #14

name: Create Docker Image
on: [push, pull_request, workflow_dispatch]
jobs:
build_and_push_docker_image:
name: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/CihatAltiparmak/moveit_middleware_benchmark
flavor: latest=true
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}