File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments