File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build images (feat/saas)
2+
3+ on :
4+ push :
5+ branches : ["feat/saas"]
6+ workflow_dispatch :
7+
8+ env :
9+ PLATFORMS : linux/amd64,linux/arm64
10+ TAG : latest
11+ IMAGE_CLIENT : ghcr.io/ajhollid/checkmate-saas-client
12+ IMAGE_SERVER : ghcr.io/ajhollid/checkmate-saas-server
13+
14+ jobs :
15+ build-and-push :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Set up Docker Buildx (multiarch)
24+ uses : docker/setup-buildx-action@v3
25+ with :
26+ install : true
27+ driver-opts : |
28+ network=host
29+ buildkitd-flags : --debug
30+
31+ - name : Log in to GitHub Container Registry
32+ uses : docker/login-action@v3
33+ with :
34+ registry : ghcr.io
35+ username : ${{ secrets.GHCR_USER }}
36+ password : ${{ secrets.GHCR_AJHOLLID_TOKEN }}
37+
38+ - name : Build and push Client (multi-arch)
39+ uses : docker/build-push-action@v5
40+ with :
41+ context : client
42+ file : client/Dockerfile
43+ platforms : ${{ env.PLATFORMS }}
44+ push : true
45+ tags : ${{ env.IMAGE_CLIENT }}:${{ env.TAG }}
46+
47+ - name : Build and push Server (multi-arch)
48+ uses : docker/build-push-action@v5
49+ with :
50+ context : server
51+ file : server/Dockerfile
52+ platforms : ${{ env.PLATFORMS }}
53+ push : true
54+ tags : ${{ env.IMAGE_SERVER }}:${{ env.TAG }}
You can’t perform that action at this time.
0 commit comments