1
- name : Build and Push Nightly docker image
1
+ name : Build and Push Nightly Docker Image
2
2
3
3
on :
4
4
push :
@@ -19,20 +19,16 @@ jobs:
19
19
env :
20
20
REPOSITORY : ' ${{ github.repository }}'
21
21
22
+ - name : Set up Docker Buildx
23
+ uses : docker/setup-buildx-action@v2
24
+
22
25
- name : Log in to GitHub Container Registry
23
26
run : echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
24
27
25
- # Step 3: Sync Backend Image
26
- - name : Build, Tag, and Push Backend Image
28
+ - name : Build, Tag, and Push Backend Image (Multi-Platform)
27
29
run : |
28
- # Build the production image and tag it correctly
29
- docker build --target production -t ghcr.io/$REPOSITORY_LC/gnome-nepal-backend:nightly .
30
- docker push ghcr.io/$REPOSITORY_LC/gnome-nepal-backend:nightly
31
-
32
-
33
- # # Step 4: Sync Worker Image
34
- # - name: Build, Tag, and Push Worker Image
35
- # run: |
36
- # # Build the worker image and tag it correctly
37
- # docker build --target worker -t ghcr.io/$REPOSITORY_LC/gnome-nepal-worker-beat:nightly .
38
- # docker push ghcr.io/$REPOSITORY_LC/gnome-nepal-worker-beat:nightly
30
+ docker buildx build \
31
+ --platform linux/amd64,linux/arm64 \
32
+ --target production \
33
+ -t ghcr.io/$REPOSITORY_LC/gnome-nepal-backend:nightly \
34
+ --push .
0 commit comments