Merge pull request 'ci: verify Docker image build on pull requests' (#1) from chore/pr-docker-build-verify into main
All checks were successful
docker / test (push) Successful in 11s
docker / build-and-push (push) Successful in 45s
docker / build-verify-pr (push) Has been skipped

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-05-22 22:19:17 +02:00
2 changed files with 23 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ on:
paths-ignore:
- '**/*.md'
- '**/*.txt'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.txt'
workflow_dispatch:
jobs:
@@ -44,6 +49,7 @@ jobs:
build-and-push:
needs: test
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -134,3 +140,19 @@ jobs:
print(f"link failed: status={exc.code} body={body}")
raise
PY
build-verify-pr:
needs: test
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: false
build-args: |
VCS_REF=${{ github.sha }}
VCS_URL=${{ github.server_url }}/${{ github.repository }}

View File

@@ -65,4 +65,4 @@ Concrete follow-up work for Jellomator, prioritized by implementation risk and u
- Add JSON import/export for services with icons.
- Add keyboard shortcuts for search/quick launch.
- Add Open Graph metadata and richer SEO tags.
- Add CI verification that builds container image for pull requests.
- [x] Add CI verification that builds container image for pull requests.