Skip to content

Commit 6b96d36

Browse files
authored
Publish to Github Container Registry
1 parent 3ea2219 commit 6b96d36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: docker_meta
2222
uses: crazy-max/ghaction-docker-meta@v1
2323
with:
24-
images: spectrum2/nginx
24+
images: ghcr.io/SpectrumIM/nginx
2525
tag-semver: |
2626
{{version}}
2727
tag-latest: ${{ endsWith(github.ref, github.repository.default_branch) || startsWith(github.ref, 'refs/tags/') }}
@@ -33,8 +33,9 @@ jobs:
3333
if: github.event_name != 'pull_request'
3434
uses: docker/login-action@v1
3535
with:
36-
username: ${{ secrets.DOCKERHUB_LOGIN }}
37-
password: ${{ secrets.DOCKERHUB}}
36+
registry: ghcr.io
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
3839
- name: Build and push
3940
uses: docker/build-push-action@v2
4041
with:

0 commit comments

Comments
 (0)