Skip to content

Commit

Permalink
Add GitHub action to build manylinux2014 image
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Apr 2, 2023
1 parent f000998 commit c2c31d4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: manylinux

# Builds the manylinux2014 image
# See https://github.com/pypa/manylinux/blob/main/.github/workflows/build.yml

on:
workflow_dispatch:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'colesbury/manylinux'
ref: nogil

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- run: |
PLATFORM=$(uname -m) POLICY=manylinux2014 PYTHON_VERSION=3.9.10 COMMIT_SHA=$GITHUB_SHA ./build.sh
docker tag nogil/manylinux2014_x86_64:$GITHUB_SHA nogil/manylinux2014_x86_64:latest
docker push nogil/manylinux2014_x86_64:$GITHUB_SHA
docker push nogil/manylinux2014_x86_64:latest

0 comments on commit c2c31d4

Please sign in to comment.