From e69e301ea9ad1eef5affba7917e86831bcb3dcdf Mon Sep 17 00:00:00 2001 From: KodekaTeam Date: Tue, 2 Jun 2026 01:18:59 +0700 Subject: [PATCH] feat: add configuration to docker hub --- .github/workflows/doktainer-image.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doktainer-image.yml b/.github/workflows/doktainer-image.yml index 80321e4..e437418 100644 --- a/.github/workflows/doktainer-image.yml +++ b/.github/workflows/doktainer-image.yml @@ -51,6 +51,7 @@ on: workflow_dispatch: env: + DOCKERHUB_IMAGE: doktainer/doktainer IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/doktainer jobs: @@ -75,11 +76,18 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to Docker Hub + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract image metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.IMAGE_NAME }} + images: ${{ env.IMAGE_NAME }},${{ env.DOCKERHUB_IMAGE }} tags: | type=raw,value=latest,enable={{is_default_branch}} type=ref,event=branch