Skip to content

adding dockefile image with mycobot280 and auto push into registry ac… #1

adding dockefile image with mycobot280 and auto push into registry ac…

adding dockefile image with mycobot280 and auto push into registry ac… #1

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths: ['.docker/Dockerfile']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Login LCAS
# You may pin to the exact commit or the version.
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: lcas.lincoln.ac.uk
# Username used to log against the Docker registry
username: ${{ secrets.LCAS_REGISTRY_PUSHER }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.LCAS_REGISTRY_TOKEN }}
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- name: Debug echo
run: echo "github.head_ref is ${{ github.head_ref }}, steps.pr-labels.outputs.labels is ${{ steps.pr-labels.outputs.labels }} ${{ contains(steps.pr-labels.outputs.labels, ' docker-build ') }}, github.event.label.name is ${{ github.event.label.name }} and github.event_name is ${{ github.event_name }}"
- name: Build and push humble
if: ${{ github.event_name != 'pull_request' }}
uses: docker/build-push-action@v2
with:
context: .
file: ./.docker/Dockerfile
platforms: linux/amd64
push: true
tags: lcas.lincoln.ac.uk/lcas/devcontainer/ros2-teaching-rbt1001:latest
build-args: |
UID=1001
GID=1001