Merge pull request #16 from Vadim-Khristenko/master

Fix multiarch.yml
This commit is contained in:
Alex Root Junior 2024-06-08 19:29:35 +03:00 committed by GitHub
commit a38657b887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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