Skip to content

Commit 28866f5

Browse files
committedSep 30, 2021
fix: login to registry before pushing
1 parent d564a24 commit 28866f5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎.github/workflows/docker-image-publish.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Docker image
22
on:
33
release:
44
types: [published]
5-
5+
66
jobs:
77
push_to_registry:
88
name: Push Docker image to GitHub Packages
@@ -18,12 +18,14 @@ jobs:
1818
tags: |
1919
type=semver,pattern={{version}}
2020
type=semver,pattern={{major}}.{{minor}}
21-
- name: Push to GitHub Packages
22-
uses: docker/build-push-action@v2
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v1
2323
with:
24+
registry: ghcr.io
2425
username: ${{ github.actor }}
2526
password: ${{ secrets.API_TOKEN_GITHUB }}
26-
registry: docker.pkg.github.com
27-
repository: manasky/lorem-server/lorem-server-image
27+
- name: Push to GitHub Packages
28+
uses: docker/build-push-action@v2
29+
with:
2830
tags: ${{ steps.meta.outputs.tags }}
2931
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)
Please sign in to comment.