mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Move to dockerhub
This commit is contained in:
11
.github/workflows/docker-build-publish.yml
vendored
11
.github/workflows/docker-build-publish.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user