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
4 changes: 3 additions & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# On a pull request github.ref_name is "<number>/merge", which is not a
# valid image tag: the build is tagged pr-<number> there (never pushed).
- uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: |
ghcr.io/stackblaze/stackblaze-docs:${{ github.ref_name }}
ghcr.io/stackblaze/stackblaze-docs:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
ghcr.io/stackblaze/stackblaze-docs:sha-${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading