Skip to content

e621ng/publish-to-ghcr

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

About

GitHub Action to build and push a Docker image to the GitHub Container Registry without fuss.

The repository must contain a Dockerfile which will then be build and published as a package to the repository.

Example usage

name: Docker Build

on:
  push:
    branches:
    - master

permissions:
  contents: read
  packages: write

jobs:
  docker-build:
    runs-on: ubuntu-latest
    if: github.repository_owner == 'e621ng' # Prevent builds starting in forks

    steps:
      - name: Publish to ghcr
        uses: e621ng/publish-to-ghcr@v1

There are no configuration parameters.