ci: 撤销多架构构建

This commit is contained in:
Mmx233 2023-03-09 09:12:56 +08:00
parent b6702739f2
commit 64c817ebf4
No known key found for this signature in database

View File

@ -12,11 +12,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup QEMU Emulator
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Setup Docker Buildx Command - name: Setup Docker Buildx Command
id: buildx id: buildx
uses: docker/setup-buildx-action@master uses: docker/setup-buildx-action@master
@ -33,7 +28,7 @@ jobs:
env: env:
URL: ${{ secrets.DOCKER_IMAGE_REGISTRY }}${{ secrets.DOCKER_IMAGE_PATH }} URL: ${{ secrets.DOCKER_IMAGE_REGISTRY }}${{ secrets.DOCKER_IMAGE_PATH }}
run: | run: |
echo LATEST=${URL}:latest >> $GITHUB_OUTPUT${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.LATEST }} echo LATEST=${URL}:latest >> $GITHUB_OUTPUT
echo VERSION=${URL}:${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT echo VERSION=${URL}:${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
- name: Build Docker Image and Push - name: Build Docker Image and Push
@ -41,8 +36,6 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
push: true push: true
builder: ${{ steps.buildx.outputs.name }}
context: . context: .
file: ./Dockerfile file: ./dockerfile
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
tags: ${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.LATEST }} tags: ${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.LATEST }}