0
0
mirror of https://github.com/python-LimeReport/containers.git synced 2024-12-23 16:23:00 +03:00
containers/.github/workflows/manylinux.yml

46 lines
1.3 KiB
YAML
Raw Normal View History

2024-03-17 11:01:42 +03:00
name: manylinux
on:
push:
branches:
- "main"
jobs:
build-and-publish:
2024-06-10 10:48:03 +03:00
runs-on: [self-hosted, Linux, ARM64]
2024-06-10 18:18:08 +03:00
permissions:
contents: read
packages: write
attestations: write
id-token: write
2024-03-17 11:01:42 +03:00
strategy:
matrix:
python: [3.9]
2024-06-10 10:46:52 +03:00
qt: [6.5.3]
2024-03-17 11:01:42 +03:00
image: [manylinux_2_31]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
2024-03-17 11:02:19 +03:00
registry: ghcr.io
2024-03-17 11:01:42 +03:00
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.image }}/Dockerfile
2024-06-10 10:46:52 +03:00
platforms: linux/arm64
2024-03-17 11:01:42 +03:00
push: true
2024-06-11 08:33:23 +03:00
cache-from: ghcr.io/python-limereport/${{ matrix.image }}:Py-${{ matrix.python }}-Qt-${{ matrix.qt }}
2024-06-10 11:01:11 +03:00
tags: ghcr.io/python-limereport/${{ matrix.image }}:Py-${{ matrix.python }}-Qt-${{ matrix.qt }}
build-args: |
2024-06-11 08:36:37 +03:00
BUILDKIT_INLINE_CACHE=1
2024-06-10 11:01:11 +03:00
PYTHON_VERSION=${{ matrix.python }}
QT_VERSION=${{ matrix.qt }}