From 993e5f82824d016366615ec7fc6235ddd620da09 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Fri, 4 Mar 2022 11:10:14 +0100 Subject: [PATCH] ci: publish the alpine image to ghcr.io too --- .github/workflows/dockerhub.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 1630f8a..dfb4286 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -119,6 +119,7 @@ jobs: uses: docker/metadata-action@v3 with: images: | + ghcr.io/nginx-proxy/nginx-proxy nginxproxy/nginx-proxy jwilder/nginx-proxy tags: | @@ -142,6 +143,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 Alpine based image if: github.ref == 'refs/heads/main'