Skip to content

Commit 253e614

Browse files
committed
package
1 parent 00b669e commit 253e614

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dist
77
.env.*
88
coverage
99
.trae
10-
10+
.tmp-superpowers

.github/workflows/publish-ghcr.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Docker image to GHCR
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
packages: write
12+
13+
jobs:
14+
build-and-push:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: docker/setup-buildx-action@v3
20+
21+
- uses: docker/login-action@v3
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- uses: docker/metadata-action@v5
28+
id: meta
29+
with:
30+
images: ghcr.io/${{ github.repository }}
31+
tags: |
32+
type=ref,event=tag
33+
type=raw,value=latest
34+
35+
- uses: docker/build-push-action@v6
36+
with:
37+
context: .
38+
file: deploy/docker/Dockerfile
39+
push: true
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)