ci: validate docker image outside public repo (#31)

This commit is contained in:
Ben Senescu 2026-03-16 15:42:50 -04:00 committed by GitHub
parent 534d4e2093
commit 81a3bd0ea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View File

@ -48,3 +48,26 @@ jobs:
- name: Build website
run: pnpm --dir web run build
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build self-host Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.selfhost
push: false
load: false
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@ -14,6 +14,7 @@ permissions:
jobs:
docker:
if: github.repository == 'every-app/open-seo'
runs-on: ubuntu-latest
steps:
- name: Checkout