diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index eca6c88..571387d 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -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 }} diff --git a/TODO.md b/TODO.md index af04370..0659f55 100644 --- a/TODO.md +++ b/TODO.md @@ -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.