diff --git a/.github/workflows/docker-image-amd64.yml b/.github/workflows/docker-image-amd64.yml index e3b8439a..1023f1b5 100644 --- a/.github/workflows/docker-image-amd64.yml +++ b/.github/workflows/docker-image-amd64.yml @@ -9,6 +9,8 @@ on: name: description: 'reason' required: false +permissions: + packages: write jobs: push_to_registries: name: Push Docker image to multiple registries @@ -25,12 +27,6 @@ jobs: git describe --tags > VERSION - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Log in to the Container registry uses: docker/login-action@v2 with: registry: ghcr.io @@ -41,9 +37,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: | - justsong/one-api - ghcr.io/${{ github.repository }} + images: ghcr.io/${{ github.repository }} - name: Build and push Docker images uses: docker/build-push-action@v3 @@ -51,4 +45,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}