From 944340413656cc60a4d3cb02993fe382ebd8d547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E6=84=8F?= Date: Tue, 9 Jul 2024 00:26:21 +0800 Subject: [PATCH] Update build_beancount.yml --- .github/workflows/build_beancount.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_beancount.yml b/.github/workflows/build_beancount.yml index b9dda83..fb52d22 100644 --- a/.github/workflows/build_beancount.yml +++ b/.github/workflows/build_beancount.yml @@ -18,18 +18,19 @@ jobs: uses: actions/checkout@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v2 - name: Log in to Docker Hub - uses: docker/login-action@v3 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build Docker image - run: | - docker build -t ${{ secrets.DOCKER_USERNAME }}/my-app:${{ github.event.inputs.tag }} -f lib/Dockerfile . - - - name: Push Docker image to Docker Hub - run: | - docker push ${{ secrets.DOCKER_USERNAME }}/beancount-alpine:${{ github.event.inputs.tag }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: ./lib + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ github.event.inputs.tag }} + labels: ${{ steps.meta.outputs.labels }}