Sfoglia il codice sorgente

ci: publish Docker images to ghcr.io

Nicolas Duchon 3 anni fa
parent
commit
5ab320d82a
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      .github/workflows/dockerhub.yml

+ 8 - 0
.github/workflows/dockerhub.yml

@@ -38,6 +38,7 @@ jobs:
         uses: docker/metadata-action@v3
         with:
           images: |
+            ghcr.io/nginx-proxy/nginx-proxy
             nginxproxy/nginx-proxy
             jwilder/nginx-proxy
           tags: |
@@ -60,6 +61,13 @@ jobs:
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
+          
+      - name: Log in to GitHub Container Registry
+        uses: docker/login-action@v1
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Build and push the Debian based image
         if: github.ref == 'refs/heads/main'