Skip to content

Commit 0915fbe

Browse files
committed
Also publish to docker hub alongside ghcr
1 parent 635f263 commit 0915fbe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,21 @@ jobs:
4444
username: ${{ github.repository_owner }}
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

47+
- name: 👤 login to docker hub
48+
if: github.event_name != 'pull_request'
49+
uses: docker/login-action@v1
50+
with:
51+
username: ${{ secrets.DOCKERHUB_USERNAME }}
52+
password: ${{ secrets.DOCKERHUB_TOKEN }}
53+
4754
- name: 🏷 docker meta
4855
id: docker_meta # you'll use this in the next step
4956
uses: docker/metadata-action@v3
5057
with:
5158
# list of Docker images to use as base name for tags
5259
images: |
5360
ghcr.io/${{ github.repository_owner }}/13ft
61+
docker.io/wasimaster/13ft
5462
# Docker tags based on the following events/attributes
5563
tags: |
5664
type=schedule

0 commit comments

Comments
 (0)