Explorar o código

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

jamesread %!s(int64=3) %!d(string=hai) anos
pai
achega
d0b7efa24c
Modificáronse 1 ficheiros con 8 adicións e 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