diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index e9f6ba6..3042cb5 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -8,6 +8,7 @@ on: branches: - main + jobs: build: runs-on: ubuntu-latest @@ -28,18 +29,23 @@ jobs: context: docker/docker/worker-cli component: worker-cli + + + steps: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3.6.1 - - name: Log in to GitHub Container Registry + - name: Login to Docker Hub uses: docker/login-action@v3.3.0 with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push Docker image uses: docker/build-push-action@v6.7.0 @@ -49,5 +55,5 @@ jobs: platforms: linux/amd64, linux/arm64 push: true tags: | - ghcr.io/${{ github.repository }}/betterscan-${{ matrix.component }}:latest - ghcr.io/${{ github.repository }}/betterscan-${{ matrix.component }}:${{ github.sha }} + tcosolutions/betterscan-${{ matrix.component }}:latest + tcosolutions/betterscan-${{ matrix.component }}:${{ github.sha }}