Skip to content

github: Add missing "package-type" to untagged cleanup step. #5

github: Add missing "package-type" to untagged cleanup step.

github: Add missing "package-type" to untagged cleanup step. #5

---
name: Build and push `main` image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
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
pull: true
tags: ghcr.io/${{ github.repository }}:main
cache-from: type=gha
cache-to: type=gha,mode=max