Skip to content

Commit b15f150

Browse files
committed
cpu and gpu
1 parent a6ca004 commit b15f150

File tree

1 file changed

+64
-4
lines changed

1 file changed

+64
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ name: Build & Publish DLCC Images
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ docker ]
66
paths:
7-
- 'docker/**'
7+
- 'docker/Dockerfile'
8+
- 'docker/Dockerfile.gpu''
9+
- 'docker/requirements.txt'
10+
- 'docker/docker-compose.yml'
811
- '.github/workflows/docker-publish.yml'
912
pull_request:
10-
branches: [ main ]
13+
branches: [ docker ]
1114
paths:
12-
- 'docker/**'
15+
- 'docker/Dockerfile'
16+
- 'docker/Dockerfile.gpu''
17+
- 'docker/requirements.txt'
18+
- 'docker/docker-compose.yml'
1319
- '.github/workflows/docker-publish.yml'
1420

1521
env:
@@ -51,3 +57,57 @@ jobs:
5157
${{ env.REGISTRY }}/deeptrackai/${{ env.IMAGE_NAME }}${{ matrix.variant == 'gpu' && '-gpu' || '' }}:latest
5258
${{ env.REGISTRY }}/deeptrackai/${{ env.IMAGE_NAME }}${{ matrix.variant == 'gpu' && '-gpu' || '' }}:${{ github.sha }}
5359
60+
# name: Build & Publish Docker Image
61+
62+
# on:
63+
# pull_request:
64+
# branches: [ docker ]
65+
# paths:
66+
# - 'docker/Dockerfile'
67+
# - 'docker/requirements.txt'
68+
# - 'docker/docker-compose.yml'
69+
# - '.github/workflows/docker-publish.yml'
70+
71+
# push:
72+
# branches: [ docker ]
73+
# paths:
74+
# - 'docker/Dockerfile'
75+
# - 'docker/requirements.txt'
76+
# - 'docker/docker-compose.yml'
77+
# - '.github/workflows/docker-publish.yml'
78+
79+
80+
# # ─────────────── global env ──────────────────────────────────────────────────
81+
# env:
82+
# REGISTRY: ghcr.io
83+
# IMAGE_NAME: deeptrackai/deep-learning-crash-course # change once here
84+
85+
# jobs:
86+
# build-and-push:
87+
# runs-on: ubuntu-latest
88+
# permissions:
89+
# contents: read
90+
# packages: write # needed to push to GHCR
91+
92+
# steps:
93+
# - uses: actions/checkout@v4
94+
# - uses: docker/setup-qemu-action@v3 # multi-arch emulation
95+
# - uses: docker/setup-buildx-action@v3 # Buildx driver with cache support
96+
97+
# - name: Log in to GHCR
98+
# uses: docker/login-action@v3
99+
# with:
100+
# registry: ${{ env.REGISTRY }}
101+
# username: ${{ github.actor }}
102+
# password: ${{ secrets.GITHUB_TOKEN }}
103+
104+
# - name: Build (and push on main branch)
105+
# uses: docker/build-push-action@v3
106+
# with:
107+
# context: ./docker
108+
# file: ./docker/Dockerfile # adjust if your Dockerfile moves
109+
# platforms: linux/amd64,linux/arm64
110+
# push: ${{ github.event_name == 'push' }} # PRs build but don’t publish
111+
# tags: |
112+
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
113+
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}

0 commit comments

Comments
 (0)