Skip to content

Commit 2f9bd44

Browse files
committed
Limit apk build to armeabi-v7a
1 parent b74bd84 commit 2f9bd44

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build APK Builder Image
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "apk/**"
8+
paths:
9+
- "docker/apk-builder/Dockerfile"
10+
- ".github/workflows/build-apk-builder.yml"
11+
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
env:
17+
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/pythonhere-apk-builder
18+
19+
jobs:
20+
build:
21+
name: Build APK builder image
22+
runs-on: ubuntu-22.04
23+
24+
steps:
25+
- uses: actions/checkout@v6
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Login to GHCR
31+
uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: docker/apk-builder/Dockerfile
42+
push: true
43+
tags: |
44+
${{ env.IMAGE_NAME }}:latest
45+
${{ env.IMAGE_NAME }}:rust-1.83.0
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)