Skip to content

Commit 72e82df

Browse files
committed
feat: Build and publish production Docker images
1 parent 01a8a0a commit 72e82df

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/cd.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: read
14+
packages: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v5
18+
- uses: docker/setup-buildx-action@v3
19+
- uses: docker/login-action@v3
20+
with:
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
- uses: docker/build-push-action@v6
25+
with:
26+
context: .
27+
file: ./Dockerfile
28+
push: true
29+
tags: |
30+
ghcr.io/${{ github.repository }}:latest
31+
ghcr.io/${{ github.repository }}:${{ github.sha }}

0 commit comments

Comments
 (0)