ci: fix GitHub Actions config

This commit is contained in:
JustSong 2023-06-24 10:45:37 +08:00
parent 2dd4ad0e06
commit 25017219f5

View File

@ -33,20 +33,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
justsong/one-api-en
ghcr.io/one-api-en
- name: Build and push Docker images
uses: docker/build-push-action@v3