Publish Docker images to ghcr.io

This commit is contained in:
alan 2024-02-26 16:19:42 +00:00 committed by GitHub
parent e7f206adab
commit 4a23d4b526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -25,8 +25,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build and push AMD64 Docker image
uses: docker/build-push-action@v3
with:
@ -34,4 +35,4 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: zedeus/nitter:latest,zedeus/nitter:${{ github.sha }}
tags: ${{ github.repository }}:latest,${{ github.repository }}:${{ github.sha }}