Explorar el Código

cicd: docker login v1 is soon to be deprecated. ghcr login needed.

jamesread hace 3 años
padre
commit
d0b7efa24c
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      .github/workflows/build-tag.yml

+ 8 - 1
.github/workflows/build-tag.yml

@@ -33,11 +33,18 @@ jobs:
           cache: true
 
       - name: Login to Docker Hub
-        uses: docker/login-action@v1
+        uses: docker/login-action@v2
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_KEY }}
 
+      - name: Login to ghcr
+        uses: docker/login-action@v2
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
       - name: grpc
         run: make grpc