Skip to content

Create pr-agent.yml #23

Create pr-agent.yml

Create pr-agent.yml #23

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/DarkusAlphaHydranoid/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 }}