Skip to content

Commit 354ddbc

Browse files
committed
Add docker files
1 parent 1775f58 commit 354ddbc

19 files changed

Lines changed: 520 additions & 143 deletions

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/target
2+
.git
3+
.gitignore
4+
.env
5+
.env.*
6+
!.env.example
7+
README.md
8+
.vscode
9+
.DS_Store

.github/workflows/docker.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- dev
6+
tags:
7+
- "v*.*.*"
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: ubuntu-24.04
17+
steps:
18+
- name: Check Out Repo
19+
uses: actions/checkout@v4
20+
- name: Docker metadata
21+
id: metadata
22+
uses: docker/metadata-action@v5
23+
with:
24+
images: |
25+
ghcr.io/${{ github.repository }}
26+
tags: |
27+
type=raw,value=latest,enable={{is_default_branch}}
28+
type=ref,event=tag
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
- name: Login to GitHub Container Registry
32+
uses: docker/login-action@v3
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.repository_owner }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Build and push
38+
id: docker_build
39+
uses: docker/build-push-action@v5
40+
with:
41+
file: Dockerfile.multi
42+
push: ${{ github.event_name != 'pull_request' }}
43+
tags: ${{ steps.metadata.outputs.tags }}
44+
cache-from: type=gha,scope=main
45+
cache-to: type=gha,mode=max,scope=main
46+
platforms: linux/amd64,linux/arm64

.sqlx/query-4037e01c8e73fcc72627842f5d0ac48bc2559bb2eb7e5ef8ce572895c6ea74e2.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-7b853288f5b2b562aa24eba15521c8a5d2fc310cd998d445bd58d4d496b66831.json renamed to .sqlx/query-41931f879395a1a70ac178a9bc47cafdf2c36a6587727398baf9da135b9ff259.json

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-7547c8581ebfdeb5fd716f53d4deb6cea5d0d1960637855bc5b8bb0bd045c425.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-8b11f5afbd3a2713aae1297ee1c72a612ddb20996669c2d779f9e544a8bb04c8.json

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-f83a6f42b125e01f1a1c1a87c69c2ebf1c16af1f38b634ccd70d24d11876ae27.json renamed to .sqlx/query-8e96470b33f646c3d3be17683e02ba08efb6d778be4a6551bf59384e7b7d68ff.json

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-56e3e00af2180d2ce2fab0b1366768aa25be5924fa0cfad67826a917dd7cbfc1.json renamed to .sqlx/query-a6c66c0d82f0fe90a2f6170b4a9a05626f0788c6ef02badb00d70ea508c60063.json

Lines changed: 9 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-cac039e9ced4e7f77147e9929bc2a1f75214c0edfe3fa559aec910ac643b0a02.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-e25d0150c6190375264158c676723ca46a400b5cdbdb312e26dfcd5ce517a833.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)