Skip to content

moveit _pyサンプルパッケージ追加 (#81) #37

moveit _pyサンプルパッケージ追加 (#81)

moveit _pyサンプルパッケージ追加 (#81) #37

name: Create and publish a Docker image
on:
push:
branches:
- master
workflow_dispatch:
env:
ROS_DISTRO: jazzy
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
file: .docker/source/Dockerfile
build-args: ROS_DISTRO=${{ env.ROS_DISTRO }}
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.ROS_DISTRO }}