From ad8a9c2b0061a4c31ab14176418f5887c73b3fae Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:30:56 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7429fe..b88f6ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,11 +21,18 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push id: docker_build uses: docker/build-push-action@v5 with: + context: . push: true file: Dockerfile tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest