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 }}