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
11 changes: 9 additions & 2 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- completed
branches:
- main
- docker
push:
tags:
- "v*.*.*"
Expand Down Expand Up @@ -42,6 +41,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to Docker Hub
env:
DOCKER_HUB_PUSH_TOKEN: ${{ secrets.DOCKER_HUB_PUSH_TOKEN }}
run: |
echo "${DOCKER_HUB_PUSH_TOKEN}" | docker login --username "squareup" --password-stdin

- name: Extract version metadata
id: meta
run: |
Expand All @@ -61,7 +66,9 @@ jobs:
id: docker_meta
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # pin@v5.8.0
with:
images: ghcr.io/${{ github.repository_owner }}/cachew
images: |
ghcr.io/${{ github.repository_owner }}/cachew
squareup/cachew
tags: |
# For main branch: latest, main, and sha
type=ref,event=branch
Expand Down