mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
💚 Improve docker image build
This commit is contained in:
parent
ba4628f6ae
commit
b57e1bdc94
1 changed files with 8 additions and 8 deletions
16
.github/workflows/dockerimage.yml
vendored
16
.github/workflows/dockerimage.yml
vendored
|
@ -57,17 +57,17 @@ jobs:
|
|||
docker-images: true
|
||||
swap-storage: true
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
||||
password: ${{ secrets.DOCKER_HUB_PWD }}
|
||||
# - name: Log in to Docker Hub
|
||||
# uses: docker/login-action@v3
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKER_HUB_USER }}
|
||||
# password: ${{ secrets.DOCKER_HUB_PWD }}
|
||||
|
||||
- name: Build the Docker image use Workflow Dispatch inputs' version
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && !github.event.inputs.image_tag == '' }}
|
||||
|
@ -76,4 +76,4 @@ jobs:
|
|||
- name: Build the Docker image use package_json version
|
||||
if: ${{ github.event_name == 'push' || github.event.inputs.image_tag == '' }}
|
||||
run: |
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 -t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:latest -t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:v${{ steps.version.outputs.value }} .
|
||||
docker buildx build --platform linux/amd64 -t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:latest -t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:v${{ steps.version.outputs.value }} .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue