-
Notifications
You must be signed in to change notification settings - Fork 111
59 lines (52 loc) · 1.71 KB
/
update-manylinux-openssl-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 17 * * 1-5'
workflow_dispatch:
jobs:
main:
env:
OPENSSL_VERSION: '3.0.15'
REGISTRY: ghcr.io
strategy:
matrix:
arch: [
x86_64,
aarch64
]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github/workflows
- run: docker pull quay.io/pypa/manylinux2014_${{ matrix.arch }}
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/aerospike/manylinux2014_${{ matrix.arch }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
# Don't want to use default Git context or else it will clone the whole Python client repo again
context: .github/workflows
file: .github/workflows/manylinux2014-openssl.Dockerfile
build-args: |
OPENSSL_VERSION=${{ env.OPENSSL_VERSION }}
CPU_ARCH=${{ matrix.arch }}
# setup-buildx-action configures Docker to use the docker-container build driver
# This driver doesn't publish an image locally by default
# so we have to manually enable it
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Also cache intermediate layers to make development faster
cache-from: type=gha
cache-to: type=gha,mode=max