Skip to content

add field validator to parse ‘labels’ field #4

add field validator to parse ‘labels’ field

add field validator to parse ‘labels’ field #4

name: Docker Publish
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- '.gitignore'
- 'docker-compose.yml'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest