feat: Push to dockerhub

This commit is contained in:
Florian Bouillon 2023-11-30 01:36:42 +01:00 committed by GitHub
parent 15d1f3ef6d
commit 7921f42c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,9 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/${{ github.repository }} images: |
ghcr.io/${{ github.repository }}
aviortheking/codestats-readme
tags: | tags: |
type=edge type=edge
type=ref,event=pr type=ref,event=pr
@ -32,6 +34,12 @@ jobs:
type=semver,pattern=latest type=semver,pattern=latest
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Github Packages
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io