This repository was archived by the owner on Jun 24, 2026. It is now read-only.
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 : 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 }}
You can’t perform that action at this time.
0 commit comments