From c6bf11a660246e71f3e04558c984347558bf4b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=93=A5=F0=9D=93=90=F0=9D=93=98=20=7C=20=7C=20?= =?UTF-8?q?=F0=9D=93=9F=F0=9D=93=BB=F0=9D=93=B8=F0=9D=93=B0=F0=9D=93=BB?= =?UTF-8?q?=F0=9D=93=AA=F0=9D=93=B6=F0=9D=93=B6=F0=9D=93=AE=F0=9D=93=BB?= Date: Sat, 8 Jun 2024 17:17:12 +0300 Subject: [PATCH] Fix multiarch.yml --- .github/workflows/multiarch.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/multiarch.yml b/.github/workflows/multiarch.yml index ef9715c..7fb4bd7 100644 --- a/.github/workflows/multiarch.yml +++ b/.github/workflows/multiarch.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest env: IMAGE_TAG: ${{ secrets.DOCKERHUB_OWNER }}/telegram-bot-api - ALPINE_VERSION: 3.19 + ALPINE_VERSION: '3.20' strategy: matrix: arch: @@ -26,10 +26,10 @@ jobs: steps: - name: Checkout current repo - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.6 - name: Checkout upstream repo - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.6 with: repository: tdlib/telegram-bot-api path: telegram-bot-api @@ -62,19 +62,19 @@ jobs: cat $GITHUB_ENV > github.env - name: Upload environment info as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.0.0 with: name: github_env path: github.env - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3.3.0 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ env.SAFE_ARCH }}-${{ github.sha }} @@ -82,14 +82,14 @@ jobs: ${{ runner.os }}-buildx-${{ env.SAFE_ARCH }}- - name: Login to Docker Hub registry - uses: docker/login-action@v2 + uses: docker/login-action@v3.2.0 if: ${{ github.event_name != 'pull_request' }} with: username: ${{ secrets.DOCKERHUB_LOGIN }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5.3.0 with: context: . file: ./Dockerfile @@ -114,7 +114,7 @@ jobs: docker save ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-${{ env.SAFE_ARCH }} -o ${{ env.SAFE_ARCH }}.tar - name: Upload image as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.0.0 with: name: image_${{ env.SAFE_ARCH }} path: ${{ env.SAFE_ARCH }}.tar @@ -129,7 +129,7 @@ jobs: steps: - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4.1.7 - name: Load environment info and built images run: | @@ -142,14 +142,14 @@ jobs: docker load --input image_linuxppc64le/linuxppc64le.tar - name: Login to ghcr registry - uses: docker/login-action@v2 + uses: docker/login-action@v3.2.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub registry - uses: docker/login-action@v2 + uses: docker/login-action@v3.2.0 with: username: ${{ secrets.DOCKERHUB_LOGIN }} password: ${{ secrets.DOCKERHUB_TOKEN }}