Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ jobs:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3

# Before building, so pulling the postgres base image counts against our
# account instead of the anonymous limit of the shared runner IP. Pull
# requests from forks get no secrets, so they build anonymously.
- name: Log in to Docker Hub
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PERSONAL_KEY }}

- name: Build
uses: docker/bake-action@v6
with:
Expand Down Expand Up @@ -133,13 +143,6 @@ jobs:
path: /tmp/summary/${{ matrix.target }}
retention-days: 1

- name: Log in to Docker Hub
if: env.PUBLISH == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PERSONAL_KEY }}

# Same build as above (served from the builder cache), pushed untagged.
# The publish job stitches the per-arch digests into tagged manifests.
- name: Push by digest
Expand Down
Loading