Move to dockerhub

This commit is contained in:
aditya.chandel
2025-07-30 10:08:59 -06:00
parent a40220d570
commit 4b1989e825
+7 -4
View File
@@ -20,8 +20,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Log in to GitHub Container Registry - name: Log in to Docker Hub
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU for multi-arch builds - name: Set up QEMU for multi-arch builds
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
@@ -119,7 +122,7 @@ jobs:
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--build-arg APP_VERSION=${{ env.image_tag }} \ --build-arg APP_VERSION=${{ env.image_tag }} \
--tag ghcr.io/${{ github.actor }}/booklore-app:${{ env.image_tag }} \ --tag booklore/booklore-app:${{ env.image_tag }} \
--push . --push .
- name: Push Latest Tag (Only for Master) - name: Push Latest Tag (Only for Master)
@@ -128,7 +131,7 @@ jobs:
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--build-arg APP_VERSION=${{ env.new_tag }} \ --build-arg APP_VERSION=${{ env.new_tag }} \
--tag ghcr.io/${{ github.actor }}/booklore-app:latest \ --tag booklore/booklore-app:latest \
--push . --push .
- name: Update Release Draft (Only for Master) - name: Update Release Draft (Only for Master)