From fc278c7aa770ad89a5a44aebb026574da45d07a5 Mon Sep 17 00:00:00 2001 From: leech001 Date: Sat, 26 Nov 2022 18:32:59 +0300 Subject: [PATCH] updade action --- .github/workflows/docker-image.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1953a68..77d2704 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -6,27 +6,8 @@ on: - "v*" jobs: - - build: - name: Build Docker image - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - platforms: linux/amd64,linux/arm64 - - # - name: Build the Docker image - # run: docker build . - - push_to_registry: - name: Push Docker image to Docker Hub + build_and_push_to_registry: + name: Build and push Docker image to Docker Hub runs-on: ubuntu-latest steps: - name: Check out the repo @@ -50,6 +31,7 @@ jobs: uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}