From 076144f69ba732714f8c5ec26bd0953a7c574b1a Mon Sep 17 00:00:00 2001 From: ypoplavs <45286051+ypoplavs@users.noreply.github.com> Date: Tue, 13 Feb 2024 12:10:17 +0200 Subject: [PATCH] ci: fix build for arm64 (#1016) * fix Ci for arm64 image build --- .github/workflows/build.yml | 2 +- .github/workflows/create-release-pr.yml | 2 +- .github/workflows/docker-build-beta-tag.yml | 2 +- .github/workflows/docker-build-develop.yml | 2 +- .github/workflows/docker-build-release.yml | 2 +- .github/workflows/docker-build-tag.yml | 9 +++++---- .github/workflows/lint.yml | 2 +- .github/workflows/release-notes-pr.yml | 2 +- .github/workflows/release-notes.yml | 2 +- .github/workflows/test.yml | 2 +- 10 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67e61750e..4e611d43e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: node-version: [20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 98a3769c4..1cf220e41 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -24,7 +24,7 @@ jobs: echo "VERSION=$(echo "$VERSION" | sed "s/^v//")" >> "$GITHUB_ENV" - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.source-branch }} fetch-depth: 0 diff --git a/.github/workflows/docker-build-beta-tag.yml b/.github/workflows/docker-build-beta-tag.yml index f1766d878..15a04084d 100644 --- a/.github/workflows/docker-build-beta-tag.yml +++ b/.github/workflows/docker-build-beta-tag.yml @@ -24,7 +24,7 @@ jobs: strip_v: true - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/docker-build-develop.yml b/.github/workflows/docker-build-develop.yml index 256b758ad..f904a734b 100644 --- a/.github/workflows/docker-build-develop.yml +++ b/.github/workflows/docker-build-develop.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/.github/workflows/docker-build-release.yml b/.github/workflows/docker-build-release.yml index 268c31efa..c643e8290 100644 --- a/.github/workflows/docker-build-release.yml +++ b/.github/workflows/docker-build-release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/.github/workflows/docker-build-tag.yml b/.github/workflows/docker-build-tag.yml index c03751c56..6282094fd 100644 --- a/.github/workflows/docker-build-tag.yml +++ b/.github/workflows/docker-build-tag.yml @@ -24,13 +24,13 @@ jobs: strip_v: true - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: driver-opts: | image=moby/buildkit:v0.10.6 @@ -53,7 +53,7 @@ jobs: readme_file: './README.md' - name: Build image and push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: push: true build-args: | @@ -62,6 +62,7 @@ jobs: REACT_APP_GTM_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }} REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }} SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} + platforms: ${{ matrix.name }} tags: ${{ github.repository }}:${{steps.tag.outputs.tag}}-${{ matrix.name }} cache-from: type=gha,scope=${{ matrix.name }} cache-to: type=gha,mode=max,scope=${{ matrix.name }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0e6eecd8b..5931260e7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: node-version: [20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 diff --git a/.github/workflows/release-notes-pr.yml b/.github/workflows/release-notes-pr.yml index de27a0f93..75920e7b9 100644 --- a/.github/workflows/release-notes-pr.yml +++ b/.github/workflows/release-notes-pr.yml @@ -12,7 +12,7 @@ jobs: pull-requests: write steps: - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} fetch-depth: 0 diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 3ac3aa144..0fdcc45d2 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -18,7 +18,7 @@ jobs: strip_v: true - name: Check out GitHub repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} fetch-depth: 0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ad1e0a8a..8fd1e821d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: node-version: [20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1