From e75e147be135c42c3c196b086d4bc1da7aa5e59e Mon Sep 17 00:00:00 2001 From: Bastian Meissner Date: Sat, 5 Mar 2022 19:13:21 +0100 Subject: [PATCH] Add GHCR support --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 446167c..3ae7970 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,16 +82,25 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - + - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push uses: docker/build-push-action@v2 with: push: true platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 - tags: phntxx/dashboard:latest \ No newline at end of file + tags: | + phntxx/dashboard:latest + ghcr.io/phntxx/dashboard:latest