ci: build ogcard image on push to main

The workflow only triggered on pull_request, which meant the image
tagged with a PR commit SHA would get pushed to ECR, but the merge
commit to main never produced a fresh image. Deploy tooling resolving
main to an ECR tag would either miss or pick up a stale PR build.

Match bskyweb-aws: `push: branches: [main]` + `workflow_dispatch`.
Drops the pull_request trigger entirely. If Dockerfile validation on
PRs is wanted back, we can add a hybrid pattern later (build-on-PR,
push-only-on-main).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Austin McKinley
2026-05-12 12:38:29 -07:00
parent f527b35244
commit 3213eeb273
@@ -1,11 +1,9 @@
name: build-and-push-ogcard-aws
on:
workflow_dispatch:
pull_request:
paths:
- "bskyogcard/**"
- "Dockerfile.bskyogcard"
- ".github/workflows/build-and-push-ogcard-aws.yaml"
push:
branches:
- main
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}