From a6174bb03a9b6be9f82535fc093674675570545d Mon Sep 17 00:00:00 2001 From: sn0wm1ku Date: Mon, 4 Mar 2024 12:24:56 +0900 Subject: [PATCH] Use GHA for build --- .github/workflows/ci.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c021258..b177f6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,15 @@ jobs: steps: - name: Checkout uses: actions/Checkout@v4 #version in small letter - - name: Build - run: | - cd Docker - docker build --platform linux/amd64,linux/arm64 -t ${{ github.repository }}:latest . - - + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: "{{defaultContext}}:Docker" + platforms: linux/amd64,linux/arm64 + push: false + tags: user/app:latest