Skip to content

Commit 7f0ac55

Browse files
authored
release: Add manual workflow to release packages (#5)
1 parent 716fae0 commit 7f0ac55

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)