Files
winnow/.github/workflows/docker-publish.yml
T

36 lines
792 B
YAML

name: Publish Docker Image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
# --- ADD THIS BLOCK ---
permissions:
contents: read
packages: write
# ----------------------
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
# Make sure this matches your exact repo name (lowercase)
tags: ghcr.io/sudolulo/if-curator-headless:latest