Move to dockerhub

This commit is contained in:
aditya.chandel
2025-07-30 10:08:59 -06:00
parent a40220d570
commit 4b1989e825

View File

@@ -20,8 +20,11 @@ jobs:
with:
fetch-depth: 0
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU for multi-arch builds
uses: docker/setup-qemu-action@v3
@@ -119,7 +122,7 @@ jobs:
docker buildx build \
--platform linux/amd64,linux/arm64 \
--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 .
- name: Push Latest Tag (Only for Master)
@@ -128,7 +131,7 @@ jobs:
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg APP_VERSION=${{ env.new_tag }} \
--tag ghcr.io/${{ github.actor }}/booklore-app:latest \
--tag booklore/booklore-app:latest \
--push .
- name: Update Release Draft (Only for Master)