Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Commit 8a0c4f3

Browse files
committed
Package ready to use image
1 parent 3d70b79 commit 8a0c4f3

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'flag*'
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Login to GHCR
21+
uses: docker/login-action@v4
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Extract metadata
28+
id: meta
29+
uses: docker/metadata-action@v6
30+
with:
31+
images: ghcr.io/${{ github.repository }}
32+
tags: |
33+
type=ref,event=tag
34+
type=raw,value=latest
35+
36+
- name: Build and push
37+
uses: docker/build-push-action@v7
38+
with:
39+
context: .
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}
43+
44+
- name: Create release
45+
uses: softprops/action-gh-release@v3
46+
with:
47+
generate_release_notes: true
48+
body: |
49+
Docker image:
50+
51+
docker pull ghcr.io/${{ github.repository }}:${{ github.ref_name }}
52+
53+
Run:
54+
55+
docker run --rm -p 1337:1337 \
56+
ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)