ci: verify Docker image build on pull requests #1

Merged
space merged 1 commits from chore/pr-docker-build-verify into main 2026-05-22 22:19:17 +02:00
2 changed files with 23 additions and 1 deletions
Showing only changes of commit 1edb89884b - Show all commits

View File

@@ -6,6 +6,11 @@ on:
paths-ignore: paths-ignore:
- '**/*.md' - '**/*.md'
- '**/*.txt' - '**/*.txt'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.txt'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -44,6 +49,7 @@ jobs:
build-and-push: build-and-push:
needs: test needs: test
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -134,3 +140,19 @@ jobs:
print(f"link failed: status={exc.code} body={body}") print(f"link failed: status={exc.code} body={body}")
raise raise
PY 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 JSON import/export for services with icons.
- Add keyboard shortcuts for search/quick launch. - Add keyboard shortcuts for search/quick launch.
- Add Open Graph metadata and richer SEO tags. - 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.