File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ input :
4
+ package :
5
+ description : " Package name"
6
+ required : true
7
+ type : choice
8
+ options :
9
+ - autoconf
10
+ - devcontainer
11
+
12
+ job :
13
+ release-to-ghcr :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ # Checkout push-to-registry action github repository
17
+ - name : Checkout Push to Registry action
18
+ uses : actions/checkout@v4
19
+ - name : Set up QEMU
20
+ uses : docker/setup-qemu-action@v3
21
+ - name : Set up Docker Buildx
22
+ uses : docker/setup-buildx-action@v3
23
+ - name : Login To GHCR
24
+ uses : docker/login-action@v3
25
+ with :
26
+ registry : ghcr.io
27
+ username : python
28
+ password : ${{secrets.GHCR_TOKEN}}
29
+ - name : Build and push
30
+ uses : docker/build-push-action@v5
31
+ with :
32
+ context : ./${{ inputs.package }}
33
+ platforms : linux/amd64,linux/arm64
34
+ push : true
35
+ tags : |
36
+ ghcr.io/python/${{ inputs.package }}:latest
You can’t perform that action at this time.
0 commit comments