From deb2b436bf084687e163da042ac886f7620ee6a5 Mon Sep 17 00:00:00 2001 From: Derotino Silveira Date: Fri, 8 Dec 2023 17:13:36 -0300 Subject: [PATCH] build: build for arm64 --- .github/workflows/develop.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 5bc327a3..f3bb5d7e 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -9,11 +9,11 @@ jobs: environment: develop steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: 'yarn' @@ -44,11 +44,11 @@ jobs: needs: [install-dependencies] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: 'yarn' @@ -83,11 +83,11 @@ jobs: needs: [test] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ steps.latestrelease.outputs.releasetag }} - name: Setup NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: 'yarn' @@ -102,22 +102,25 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Build run: yarn build + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Get the tag name run: | echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" echo "Tag name from github.ref_name: ${{ github.ref_name }}" - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 file: ./Dockerfile push: true tags: konecty/konecty:${{ github.ref_name }}