From 3832ed8e9f7c7b4b0ef44c2ea60ff63723595dee Mon Sep 17 00:00:00 2001 From: Ali Pourhabibi Date: Fri, 15 Dec 2023 17:30:34 +0330 Subject: [PATCH] ci: change ci to push to ghcr --- .github/workflows/build_image.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_image.yaml b/.github/workflows/build_image.yaml index c900459..66b62f5 100644 --- a/.github/workflows/build_image.yaml +++ b/.github/workflows/build_image.yaml @@ -15,10 +15,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + + - + 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@v5 with: context: . - push: false - tags: alipourhabibi/http-downloader:latest + push: true + tags: ghcr.io/alipourhabibi/http-downloader:latest