From 73ba078efcfa5b3cd20aaf4b851597f8c38b668c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 4 Feb 2025 22:02:56 +0000 Subject: [PATCH] fix: init push to ghcr --- .github/workflows/docker-develop-build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-develop-build.yml b/.github/workflows/docker-develop-build.yml index e5c16afc..44a61769 100644 --- a/.github/workflows/docker-develop-build.yml +++ b/.github/workflows/docker-develop-build.yml @@ -36,6 +36,13 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push platform-specific images uses: docker/build-push-action@v6 @@ -46,6 +53,7 @@ jobs: push: true tags: | ${{ secrets.DOCKER_USERNAME }}/docsgpt:develop-${{ matrix.suffix }} + ghcr.io/${{ github.repository_owner }}/docsgpt:develop-${{ matrix.suffix }} provenance: false sbom: false cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/docsgpt:develop