File tree Expand file tree Collapse file tree 5 files changed +52
-45
lines changed Expand file tree Collapse file tree 5 files changed +52
-45
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches-ignore :
6
+ - " dependabot/**"
7
+ paths :
8
+ - " .github/workflows/build.yml"
9
+ - " docker/**"
10
+ - " *.sh"
11
+ pull_request :
12
+ paths :
13
+ - " .github/workflows/build.yml"
14
+ - " docker/**"
15
+ - " build.sh"
16
+
17
+ jobs :
18
+ build :
19
+ name : manylinux2010_${{ matrix.platform }}
20
+ runs-on : ubuntu-20.04
21
+ strategy :
22
+ fail-fast : false
23
+ matrix :
24
+ include :
25
+ - platform : " i686"
26
+ - platform : " x86_64"
27
+
28
+ env :
29
+ PLATFORM : ${{ matrix.platform }}
30
+ COMMIT_SHA : ${{ github.sha }}
31
+
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v2
35
+ - name : Build
36
+ run : ./build.sh
37
+ - name : Deploy
38
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'pypa/manylinux'
39
+ run : ./deploy.sh
40
+ env :
41
+ QUAY_USERNAME : ${{ secrets.QUAY_USERNAME }}
42
+ QUAY_PASSWORD : ${{ secrets.QUAY_PASSWORD }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
set -ex
5
5
6
6
7
- docker build --rm -t " quay.io/pypa/manylinux2010_$PLATFORM : $TRAVIS_COMMIT " -f " docker/Dockerfile-$PLATFORM " docker/
7
+ docker build --rm -t " quay.io/pypa/manylinux2010_${ PLATFORM} : ${COMMIT_SHA} " -f " docker/Dockerfile-${ PLATFORM} " docker/
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ tag=" quay.io/pypa/manylinux2010_$PLATFORM "
3
+ build_id=$( git show -s --format=%cd-%h --date=short ${COMMIT_SHA} )
4
+
5
+ docker login -u $QUAY_USERNAME -p $QUAY_PASSWORD quay.io
6
+ docker tag ${tag} :${COMMIT_SHA} ${tag} :${build_id}
7
+ docker tag ${tag} :${COMMIT_SHA} ${tag} :latest
8
+ docker push ${tag} :${build_id}
9
+ docker push ${tag} :latest
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments