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